From 73ab8aa928bd84d7149aee19e791abfedae42467 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Mon, 20 Oct 2008 18:25:11 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20460143:=20Bug.legal=5Fvalues=20doesn't=20?= =?UTF-8?q?allow=20you=20to=20get=20values=20for=20multi-select=20fields?= =?UTF-8?q?=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r/a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@254681 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm b/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm index 1cdf44d83ad..8cfb6acdef4 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm +++ b/mozilla/webtools/bugzilla/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 # @@ -193,8 +192,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;