Commit ca27162f authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

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)
parent 87a3fdaf
......@@ -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 });
......
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