diff options
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index c15035928..0ffa1d1b9 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -302,12 +302,13 @@ sub switch_to_main_db { sub get_fields { my $class = shift; my $criteria = shift; - return Bugzilla::Field::match($criteria); + return @{Bugzilla::Field->match($criteria)}; } sub custom_field_names { # Get a list of custom fields and convert it into a list of their names. - return map($_->{name}, Bugzilla::Field::match({ custom=>1, obsolete=>0 })); + return map($_->{name}, + @{Bugzilla::Field->match({ custom=>1, obsolete=>0 })}); } sub request_cache { |