From: lpsolit%gmail.com <> Date: Mon, 20 Oct 2008 23:25:11 +0000 (+0000) Subject: Bug 460143: Bug.legal_values doesn't allow you to get values for multi-select fields... X-Git-Tag: bugzilla-3.2rc2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=437bae13a4898c15eda40837580eca86b0bb1059;p=thirdparty%2Fbugzilla.git Bug 460143: Bug.legal_values doesn't allow you to get values for multi-select fields - Patch by Frédéric Buclin r/a=mkanat --- diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 44180cc14f..2df15081be 100755 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -29,7 +29,6 @@ use Bugzilla::Field; use Bugzilla::WebService::Constants; use Bugzilla::Bug; use Bugzilla::BugMail; -use Bugzilla::Constants; ############# # Constants # @@ -137,8 +136,8 @@ sub legal_values { my ($self, $params) = @_; my $field = FIELD_MAP->{$params->{field}} || $params->{field}; - my @custom_select = - Bugzilla->get_fields({ type => FIELD_TYPE_SINGLE_SELECT }); + my @custom_select = Bugzilla->get_fields( + {custom => 1, type => [FIELD_TYPE_SINGLE_SELECT, FIELD_TYPE_MULTI_SELECT]}); # We only want field names. @custom_select = map {$_->name} @custom_select;