From 85e75aba6a7131da9d63b1f628a27e986bb428c5 Mon Sep 17 00:00:00 2001 From: Tiago Mello Date: Tue, 24 Aug 2010 17:25:49 -0300 Subject: Bug 586871: Convert all Bugzilla->get_fields calls to Bugzilla->fields r/a=mkanat --- Bugzilla/WebService/Bug.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Bugzilla/WebService') diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 8558e04f7..953355385 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -104,7 +104,7 @@ sub fields { } if (!defined $params->{ids} and !defined $params->{names}) { - @fields = Bugzilla->get_fields({ obsolete => 0 }); + @fields = @{ Bugzilla->fields({ obsolete => 0 }) }; } my @fields_out; @@ -558,8 +558,8 @@ sub legal_values { my $field = Bugzilla::Bug::FIELD_MAP->{$params->{field}} || $params->{field}; - my @global_selects = grep { !$_->is_abnormal } - Bugzilla->get_fields({ is_select => 1 }); + my @global_selects = + @{ Bugzilla->fields({ is_select => 1, is_abnormal => 0 }) }; my $values; if (grep($_->name eq $field, @global_selects)) { -- cgit v1.2.3-24-g4f1b