diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-01-02 18:00:24 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-01-02 18:00:24 +0100 |
commit | 930fc8343825b942228b5c57d279338ffcd6d8c0 (patch) | |
tree | e5dc980df93761b3338b9a8bcd998bf5d33dc71d | |
parent | a6c9e2924be38fdae644bc9bba34f5cbd33d6348 (diff) | |
download | bugzilla-930fc8343825b942228b5c57d279338ffcd6d8c0.tar.gz bugzilla-930fc8343825b942228b5c57d279338ffcd6d8c0.tar.xz |
Fix duplicate detection triggering on reopened bugs
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | Bugzilla/Migrate/Flyspray.pm | 2 |
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); } } |