From 85e75aba6a7131da9d63b1f628a27e986bb428c5 Mon Sep 17 00:00:00 2001 From: Tiago Mello Date: Tue, 24 Aug 2010 17:25:49 -0300 Subject: Bug 586871: Convert all Bugzilla->get_fields calls to Bugzilla->fields r/a=mkanat --- Bugzilla/Install/DB.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Install') 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); -- cgit v1.2.3-24-g4f1b