]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 620796: Make Bugzilla::Migrate skip abnormal fields when doing
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 21 Dec 2010 23:53:49 +0000 (15:53 -0800)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 21 Dec 2010 23:53:49 +0000 (15:53 -0800)
create_legal_values (otherwise it tried to create Components there, when
it should not have).
r=mkanat, a=mkanat (module owner)

Bugzilla/Migrate.pm

index 8c38408000e3d7622a34860b9b8c04762aed4531..9c6d2fef9fe4934463dd9801022c0dc2744fbd86 100644 (file)
@@ -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 });