aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-21 15:53:49 -0800
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-21 15:53:49 -0800
commitca27162fd216875e560344117a2590978f60c906 (patch)
tree09ecc4c8903c8c8d170cb4e583f77c5319dcc26b
parent87a3fdafdc843eb8976c36c3638b1770a1f42eb2 (diff)
downloadbugs-ca27162fd216875e560344117a2590978f60c906.tar
bugs-ca27162fd216875e560344117a2590978f60c906.tar.gz
bugs-ca27162fd216875e560344117a2590978f60c906.tar.bz2
bugs-ca27162fd216875e560344117a2590978f60c906.tar.xz
bugs-ca27162fd216875e560344117a2590978f60c906.zip
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)
-rw-r--r--Bugzilla/Migrate.pm2
1 files changed, 2 insertions, 0 deletions
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 });