diff options
author | lpsolit%gmail.com <> | 2008-10-21 01:22:59 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-10-21 01:22:59 +0200 |
commit | 24ed1022dec54618ba699ce2078ce0161b3ecda7 (patch) | |
tree | 407eddae3606e68a2632fcd2320f542624a7d1e5 /Bugzilla | |
parent | 0baf608ae5bcf79d26411d7a89ef3b0377a26177 (diff) | |
download | bugzilla-24ed1022dec54618ba699ce2078ce0161b3ecda7.tar.gz bugzilla-24ed1022dec54618ba699ce2078ce0161b3ecda7.tar.xz |
Bug 460143: Bug.legal_values doesn't allow you to get values for multi-select fields - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla')
-rwxr-xr-x | Bugzilla/WebService/Bug.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 1cdf44d83..8cfb6acde 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 # @@ -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; |