From 9334d6db0c9982de74c9f8bcb572f945fcca4cb4 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 26 Jul 2006 06:20:01 +0000 Subject: Bug 339382: Make Bugzilla::Field use Bugzilla::Object Patch By Max Kanat-Alexander r=LpSolit, a=myk --- Bugzilla.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Bugzilla.pm') 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 { -- cgit v1.2.3-24-g4f1b