Commit ad089c24 authored by 's avatar Committed by Frédéric Buclin

Bug 622204: Bugzilla::Migrate crashes trying to create bugs with resolutions

r/a=mkanat
parent 02e52f81
......@@ -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} });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment