diff options
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r-- | Bugzilla/Install/DB.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index 01270aab6..bfce7779f 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -3257,9 +3257,9 @@ sub _fix_logincookies_ipaddr { } sub _fix_invalid_custom_field_names { - my @fields = Bugzilla->get_fields({ custom => 1 }); + my $fields = Bugzilla->fields({ custom => 1 }); - foreach my $field (@fields) { + foreach my $field (@$fields) { next if $field->name =~ /^[a-zA-Z0-9_]+$/; # The field name is illegal and can break the DB. Kill the field! $field->set_obsolete(1); |