summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/WebService')
-rwxr-xr-xBugzilla/WebService/Bug.pm2
1 files changed, 2 insertions, 0 deletions
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)) {