diff options
author | Tiago Mello <timello@gmail.com> | 2010-08-24 22:25:49 +0200 |
---|---|---|
committer | Tiago Mello <timello@gmail.com> | 2010-08-24 22:25:49 +0200 |
commit | 85e75aba6a7131da9d63b1f628a27e986bb428c5 (patch) | |
tree | 62ea9dab6305ba21a67b1904523435365b53aae5 /Bugzilla/Install | |
parent | e09c48b2f7668071264c975f9191cf41b493ef1c (diff) | |
download | bugzilla-85e75aba6a7131da9d63b1f628a27e986bb428c5.tar.gz bugzilla-85e75aba6a7131da9d63b1f628a27e986bb428c5.tar.xz |
Bug 586871: Convert all Bugzilla->get_fields calls to Bugzilla->fields
r/a=mkanat
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); |