Bug 339382: Make Bugzilla::Field use Bugzilla::Object
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk git-svn-id: svn://10.0.0.236/trunk@203694 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user