summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-01-02 18:00:24 +0100
committerFlorian Pritz <bluewind@xinu.at>2018-04-10 18:31:51 +0200
commit461db25a06d3da64907c6afe51a0fd50cb975527 (patch)
treeb51479e177fa3a0fdd2bbac36c216416fceccd00
parent997d3dfb571243fef274f2a8f9e2a783bc42e68d (diff)
downloadbugzilla-461db25a06d3da64907c6afe51a0fd50cb975527.tar.gz
bugzilla-461db25a06d3da64907c6afe51a0fd50cb975527.tar.xz
Fix duplicate detection triggering on reopened bugs
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--Bugzilla/Migrate/Flyspray.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Migrate/Flyspray.pm b/Bugzilla/Migrate/Flyspray.pm
index 8116392a9..c41d9cb96 100644
--- a/Bugzilla/Migrate/Flyspray.pm
+++ b/Bugzilla/Migrate/Flyspray.pm
@@ -390,7 +390,7 @@ sub _read_bugs {
added => $history->{resolution_name},
};
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);
}
}