Commit 24ed1022 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 460143: Bug.legal_values doesn't allow you to get values for multi-select…

Bug 460143: Bug.legal_values doesn't allow you to get values for multi-select fields - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 0baf608a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment