summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r--Bugzilla/WebService/Bug.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index 124dd6b25..86c6ef5da 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -569,6 +569,10 @@ sub create {
sub legal_values {
my ($self, $params) = @_;
+
+ defined $params->{field}
+ or ThrowCodeError('param_required', { param => 'field' });
+
my $field = Bugzilla::Bug::FIELD_MAP->{$params->{field}}
|| $params->{field};