diff options
-rw-r--r-- | Bugzilla/Migrate/Flyspray.pm | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Bugzilla/Migrate/Flyspray.pm b/Bugzilla/Migrate/Flyspray.pm index 268bd8092..0b2997536 100644 --- a/Bugzilla/Migrate/Flyspray.pm +++ b/Bugzilla/Migrate/Flyspray.pm @@ -286,7 +286,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, @@ -506,17 +505,12 @@ 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; |