]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 622204: Bugzilla::Migrate crashes trying to create bugs with resolutions
author <Alex> <>
Sun, 9 Jan 2011 14:18:27 +0000 (15:18 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sun, 9 Jan 2011 14:18:27 +0000 (15:18 +0100)
r/a=mkanat

Bugzilla/Migrate.pm

index f28854957a7ab55c64a4aff12f12c4784de74478..62e4fcf8e9a7d2c8542af1769b8171ebc120bc63 100644 (file)
@@ -742,7 +742,7 @@ sub insert_bugs {
         my ($set_status, $set_resolution);
         if (defined $bug->{resolution}) {
             $set_resolution = Bugzilla::Field::Choice->type('resolution')
-                              ->new({ name => $bug->{resolution} });
+                              ->new({ name => delete $bug->{resolution} });
         }
         if (!$allowed_statuses{lc($bug->{bug_status})}) {
             $set_status = new Bugzilla::Status({ name => $bug->{bug_status} });