From ad089c24e947b5baa99daffbea19514d88806797 Mon Sep 17 00:00:00 2001 From: Date: Sun, 9 Jan 2011 15:16:34 +0100 Subject: Bug 622204: Bugzilla::Migrate crashes trying to create bugs with resolutions r/a=mkanat --- Bugzilla/Migrate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/Migrate.pm b/Bugzilla/Migrate.pm index 9c6d2fef9..4d7637527 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} }); -- cgit v1.2.3-24-g4f1b