summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author <Alex>2011-01-09 15:16:34 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2011-01-09 15:16:34 +0100
commitad089c24e947b5baa99daffbea19514d88806797 (patch)
tree972d7d3f439a737333b85adff6a4ef84718393e4
parent02e52f810b396c5f367dc18b162d6a6724cab754 (diff)
downloadbugzilla-ad089c24e947b5baa99daffbea19514d88806797.tar.gz
bugzilla-ad089c24e947b5baa99daffbea19514d88806797.tar.xz
Bug 622204: Bugzilla::Migrate crashes trying to create bugs with resolutions
r/a=mkanat
-rw-r--r--Bugzilla/Migrate.pm2
1 files changed, 1 insertions, 1 deletions
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} });