summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-07-26 08:20:01 +0200
committermkanat%bugzilla.org <>2006-07-26 08:20:01 +0200
commit9334d6db0c9982de74c9f8bcb572f945fcca4cb4 (patch)
tree9af28dd8863c23f9c23667c14a6ef699d363cf72 /Bugzilla.pm
parentf191286713b620120a0642b7d1757a0f762a4bd6 (diff)
downloadbugzilla-9334d6db0c9982de74c9f8bcb572f945fcca4cb4.tar.gz
bugzilla-9334d6db0c9982de74c9f8bcb572f945fcca4cb4.tar.xz
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.pm5
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 {