]> 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:16:34 +0000 (15:16 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sun, 9 Jan 2011 14:16:34 +0000 (15:16 +0100)
r/a=mkanat

Bugzilla/Migrate.pm

index 9c6d2fef9fe4934463dd9801022c0dc2744fbd86..4d76375278cfbc6f4fcc73ebe5492fa5dedcece9 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} });