From ca27162fd216875e560344117a2590978f60c906 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Tue, 21 Dec 2010 15:53:49 -0800 Subject: Bug 620796: Make Bugzilla::Migrate skip abnormal fields when doing create_legal_values (otherwise it tried to create Components there, when it should not have). r=mkanat, a=mkanat (module owner) --- Bugzilla/Migrate.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Bugzilla/Migrate.pm') diff --git a/Bugzilla/Migrate.pm b/Bugzilla/Migrate.pm index 8c3840800..9c6d2fef9 100644 --- a/Bugzilla/Migrate.pm +++ b/Bugzilla/Migrate.pm @@ -573,6 +573,7 @@ sub insert_users { } } +# XXX This should also insert Classifications. sub insert_products { my ($self, $products) = @_; foreach my $product (@$products) { @@ -639,6 +640,7 @@ sub create_legal_values { } foreach my $field (@select_fields) { + next if $field->is_abnormal; my $name = $field->name; foreach my $value (keys %{ $values{$name} }) { next if Bugzilla::Field::Choice->type($field)->new({ name => $value }); -- cgit v1.2.3-24-g4f1b