summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Migrate/Flyspray.pm
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-12-27 15:43:12 +0100
committerFlorian Pritz <bluewind@xinu.at>2017-12-27 15:43:12 +0100
commitd67d9fd215186016ce370cd8fedc0ec891a081d1 (patch)
treee9b8d9319167caa00bd7cf47fc0f9ed12b259e93 /Bugzilla/Migrate/Flyspray.pm
parentbe04e7e48977def76cce03934854afb471ceed40 (diff)
downloadbugzilla-d67d9fd215186016ce370cd8fedc0ec891a081d1.tar.gz
bugzilla-d67d9fd215186016ce370cd8fedc0ec891a081d1.tar.xz
WIP: Migrate duplicate ID
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'Bugzilla/Migrate/Flyspray.pm')
-rw-r--r--Bugzilla/Migrate/Flyspray.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/Migrate/Flyspray.pm b/Bugzilla/Migrate/Flyspray.pm
index 9d8949919..024b99b4b 100644
--- a/Bugzilla/Migrate/Flyspray.pm
+++ b/Bugzilla/Migrate/Flyspray.pm
@@ -382,6 +382,11 @@ sub _read_bugs {
removed => "",
added => $history->{resolution_name},
};
+ if ($self->translate_value('resolution', $history->{resolution_name}) eq "DUPLICATE") {
+ if ($closure_comment =~ m/FS#(\d+)/) {
+ $bug->{dup_id} = int($1);
+ }
+ }
} elsif ($history->{event_type} == 3) {
# type 3 -> field changed
if ($history->{field_changed} eq "item_status") {