From: Date: Sun, 9 Jan 2011 14:18:27 +0000 (+0100) Subject: Bug 622204: Bugzilla::Migrate crashes trying to create bugs with resolutions X-Git-Tag: bugzilla-4.0rc2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=436abb74bcbfcd180b75a90136e174d7ac712145;p=thirdparty%2Fbugzilla.git Bug 622204: Bugzilla::Migrate crashes trying to create bugs with resolutions r/a=mkanat --- diff --git a/Bugzilla/Migrate.pm b/Bugzilla/Migrate.pm index f28854957a..62e4fcf8e9 100644 --- a/Bugzilla/Migrate.pm +++ b/Bugzilla/Migrate.pm @@ -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} });