summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Migrate/Flyspray.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Migrate/Flyspray.pm')
-rw-r--r--Bugzilla/Migrate/Flyspray.pm4
1 files changed, 0 insertions, 4 deletions
diff --git a/Bugzilla/Migrate/Flyspray.pm b/Bugzilla/Migrate/Flyspray.pm
index f38d049ac..70d94c91e 100644
--- a/Bugzilla/Migrate/Flyspray.pm
+++ b/Bugzilla/Migrate/Flyspray.pm
@@ -267,7 +267,6 @@ sub _read_bugs {
my $fsdb = $self->config("flyspray_db");
my $fsprfx = $self->config("flyspray_prefix");
- #my $sth = $self->_select_fs([qw(tasks users)], [qw(task_id product_category project_id item_summary detailed_desc user_name)], {'tasks.opened_by' => \' = users.user_id' });
my $sth = $self->{dbh}->prepare("
SELECT
t.task_id,
@@ -462,14 +461,11 @@ sub _read_bugs {
ispatch => $attachment->{file_type} =~ m/^text\/x-diff/ ? 1 : 0,
data_path => $path,
};
- #$attachment_item->{mimetype} = mimetype($path) if $attachment_item->{mimetype} eq "" or $attachment_item->{mimetype} !~ m/.+\/.+/;
$attachment_item->{mimetype} = mimetype($path);
# TODO: set extra_data and type of comment when attachment is part of a comment.
# problem: how to get attachment id? not yet in db
# change _insert_attachments/_insert_comments?
push @{$bug->{attachments}}, $attachment_item;
- #$self->debug($bug);
- #die if $attachment->{date_added} == 1110715864;
}
$self->{bug_map}->{$bug->{bug_id}} = $bug;