summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-01-02 18:00:24 +0100
committerFlorian Pritz <bluewind@xinu.at>2018-12-06 11:06:01 +0100
commitd38cd600a7af44c4ea8c97042eef287c6dd84a86 (patch)
tree61ebfbaa153c5f4143d8864fd04e590e72dea90d
parent1effa62b767cb23a19f6179160e4c5b5403e3e4b (diff)
downloadbugzilla-d38cd600a7af44c4ea8c97042eef287c6dd84a86.tar.gz
bugzilla-d38cd600a7af44c4ea8c97042eef287c6dd84a86.tar.xz
Fix duplicate detection triggering on reopened bugs
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--Bugzilla/Migrate/Flyspray.pm5
1 files changed, 4 insertions, 1 deletions
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);
}
}