diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-05-11 17:22:08 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-12-06 11:08:18 +0100 |
commit | 5135638f83d5c16698fd3b8a5323c81a6e0441cf (patch) | |
tree | df587d82eb98c7d1098d0725403cd692bd15dcb9 | |
parent | a24833f074eb805f911b431d62594540cea975b4 (diff) | |
download | bugzilla-5135638f83d5c16698fd3b8a5323c81a6e0441cf.tar.gz bugzilla-5135638f83d5c16698fd3b8a5323c81a6e0441cf.tar.xz |
Flyspray: Remove old debug code
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-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; |