]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 460143: Bug.legal_values doesn't allow you to get values for multi-select fields...
authorlpsolit%gmail.com <>
Mon, 20 Oct 2008 23:22:59 +0000 (23:22 +0000)
committerlpsolit%gmail.com <>
Mon, 20 Oct 2008 23:22:59 +0000 (23:22 +0000)
Bugzilla/WebService/Bug.pm

index 1cdf44d83ad6ad6ac2771eb4148d3a923b21dd73..8cfb6acdef4109aa616b037f5062f1cdae70edd7 100755 (executable)
@@ -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;