From d38cd600a7af44c4ea8c97042eef287c6dd84a86 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 2 Jan 2018 18:00:24 +0100 Subject: Fix duplicate detection triggering on reopened bugs Signed-off-by: Florian Pritz --- Bugzilla/Migrate/Flyspray.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Bugzilla/Migrate/Flyspray.pm b/Bugzilla/Migrate/Flyspray.pm index cba1143f7..6f499bc4a 100644 --- a/Bugzilla/Migrate/Flyspray.pm +++ b/Bugzilla/Migrate/Flyspray.pm @@ -421,7 +421,10 @@ sub _read_bugs { if ($self->translate_value('resolution', $history->{resolution_name} // "") eq "DUPLICATE") { - if ($closure_comment =~ m/FS#(\d+)/) { + if ( + $self->translate_value('resolution', $bug->{resolution} // "") eq "DUPLICATE" + and $closure_comment =~ m/FS#(\d+)/) + { $self->{dupes}->{$row->{task_id}} = int($1); } } -- cgit v1.2.3-24-g4f1b