summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Migrate.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-22 00:53:49 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-22 00:53:49 +0100
commitca27162fd216875e560344117a2590978f60c906 (patch)
tree09ecc4c8903c8c8d170cb4e583f77c5319dcc26b /Bugzilla/Migrate.pm
parent87a3fdafdc843eb8976c36c3638b1770a1f42eb2 (diff)
downloadbugzilla-ca27162fd216875e560344117a2590978f60c906.tar.gz
bugzilla-ca27162fd216875e560344117a2590978f60c906.tar.xz
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)
Diffstat (limited to 'Bugzilla/Migrate.pm')
-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 });