diff options
author | lpsolit%gmail.com <> | 2008-02-12 08:32:51 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-02-12 08:32:51 +0100 |
commit | 30c7fa92ac2d0c76443fcc47907487a9ff0186b2 (patch) | |
tree | 30743e0fee6f292ae812ed373d1078aedbe5fb29 /Bugzilla/WebService | |
parent | d26783131dda06d57fb12342eb8d4df0bbfe774f (diff) | |
download | bugzilla-30c7fa92ac2d0c76443fcc47907487a9ff0186b2.tar.gz bugzilla-30c7fa92ac2d0c76443fcc47907487a9ff0186b2.tar.xz |
Bug 384009: Global fields (priority, severity, OS, and platform) are required when using WebService instead of using the defaults - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/WebService')
-rwxr-xr-x | Bugzilla/WebService/Bug.pm | 14 | ||||
-rwxr-xr-x | Bugzilla/WebService/Constants.pm | 1 |
2 files changed, 10 insertions, 5 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 01d5c16eb..44180cc14 100755 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -123,11 +123,6 @@ sub create { $field_values{$field_name} = $params->{$field}; } - # Make sure all the required fields are in the hash. - foreach my $field (Bugzilla::Bug::REQUIRED_CREATE_FIELDS) { - $field_values{$field} = undef unless exists $field_values{$field}; - } - # WebService users can't set the creation date of a bug. delete $field_values{'creation_ts'}; @@ -504,6 +499,15 @@ in them. The error message will have more details. =back +=item B<History> + +=over + +=item Before B<3.0.4>, parameters marked as B<Defaulted> were actually +B<Required>, due to a bug in Bugzilla. + +=back + =back =item C<add_comment> B<EXPERIMENTAL> diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm index f12c5ecd2..85640d1bc 100755 --- a/Bugzilla/WebService/Constants.pm +++ b/Bugzilla/WebService/Constants.pm @@ -52,6 +52,7 @@ use base qw(Exporter); use constant WS_ERROR_CODE => { # Generic Bugzilla::Object errors are 50-99. object_name_not_specified => 50, + param_required => 50, object_does_not_exist => 51, # Bug errors usually occupy the 100-200 range. improper_bug_id_field_value => 100, |