From 004d9a78bc692f024f95363966be1d959b59cb93 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 26 May 2007 06:01:21 +0000 Subject: Bug 381737: Unable to get legal values of custom fields via XML-RPC - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/WebService/Bug.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Bugzilla') diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index a632ffaf0..a2710c482 100755 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -130,6 +130,8 @@ sub legal_values { my @custom_select = Bugzilla->get_fields({ type => FIELD_TYPE_SINGLE_SELECT }); + # We only want field names. + @custom_select = map {$_->name} @custom_select; my $values; if (grep($_ eq $field, GLOBAL_SELECT_FIELDS, @custom_select)) { -- cgit v1.2.3-24-g4f1b