diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2013-12-05 23:39:34 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2013-12-05 23:39:34 +0100 |
commit | ad2cdcdfb3fb4b3ae336847258ed6b2b55f7aa0f (patch) | |
tree | dc299b26ca5948bf14c1e4957b52310cf96b7da7 /Bugzilla | |
parent | 50a44fc4185bb62fdf2a405cb0dfafe782824362 (diff) | |
download | bugs-ad2cdcdfb3fb4b3ae336847258ed6b2b55f7aa0f.tar bugs-ad2cdcdfb3fb4b3ae336847258ed6b2b55f7aa0f.tar.gz bugs-ad2cdcdfb3fb4b3ae336847258ed6b2b55f7aa0f.tar.bz2 bugs-ad2cdcdfb3fb4b3ae336847258ed6b2b55f7aa0f.tar.xz bugs-ad2cdcdfb3fb4b3ae336847258ed6b2b55f7aa0f.zip |
Bug 942599: Documentation about possible_duplicates() lists 'products' as argument instead of 'product'
r/a=glob
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/WebService/Bug.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 7f012160c..8b3f58eb1 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -555,7 +555,7 @@ sub search { } sub possible_duplicates { - my ($self, $params) = validate(@_, 'product'); + my ($self, $params) = validate(@_, 'products'); my $user = Bugzilla->user; Bugzilla->switch_to_shadow_db(); @@ -565,7 +565,7 @@ sub possible_duplicates { { function => 'Bug.possible_duplicates', param => 'summary' }); my @products; - foreach my $name (@{ $params->{'product'} || [] }) { + foreach my $name (@{ $params->{'products'} || [] }) { my $object = $user->can_enter_product($name, THROW_ERROR); push(@products, $object); } @@ -2652,6 +2652,9 @@ search for duplicates. =item Added in Bugzilla B<4.0>. +=item The C<product> parameter has been renamed to C<products> in +Bugzilla B<5.0>. + =back =back |