diff options
author | mkanat%bugzilla.org <> | 2006-07-26 06:20:01 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-07-26 06:20:01 +0000 |
commit | 9334d6db0c9982de74c9f8bcb572f945fcca4cb4 (patch) | |
tree | 9af28dd8863c23f9c23667c14a6ef699d363cf72 /Bugzilla.pm | |
parent | Bug 345389: Template-Toolkit 2.15 moved Template::Plugin::GD into a separate ... (diff) | |
download | bugzilla-9334d6db0c9982de74c9f8bcb572f945fcca4cb4.tar.gz bugzilla-9334d6db0c9982de74c9f8bcb572f945fcca4cb4.tar.bz2 bugzilla-9334d6db0c9982de74c9f8bcb572f945fcca4cb4.zip |
Bug 339382: Make Bugzilla::Field use Bugzilla::Object
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
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 { |