From: Date: Sun, 9 Jan 2011 14:16:34 +0000 (+0100) Subject: Bug 622204: Bugzilla::Migrate crashes trying to create bugs with resolutions X-Git-Tag: bugzilla-4.1.1~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad089c24e947b5baa99daffbea19514d88806797;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 9c6d2fef9f..4d76375278 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} });