Commit ad2cdcdf authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 942599: Documentation about possible_duplicates() lists 'products' as…

Bug 942599: Documentation about possible_duplicates() lists 'products' as argument instead of 'product' r/a=glob
parent 50a44fc4
...@@ -555,7 +555,7 @@ sub search { ...@@ -555,7 +555,7 @@ sub search {
} }
sub possible_duplicates { sub possible_duplicates {
my ($self, $params) = validate(@_, 'product'); my ($self, $params) = validate(@_, 'products');
my $user = Bugzilla->user; my $user = Bugzilla->user;
Bugzilla->switch_to_shadow_db(); Bugzilla->switch_to_shadow_db();
...@@ -565,7 +565,7 @@ sub possible_duplicates { ...@@ -565,7 +565,7 @@ sub possible_duplicates {
{ function => 'Bug.possible_duplicates', param => 'summary' }); { function => 'Bug.possible_duplicates', param => 'summary' });
my @products; my @products;
foreach my $name (@{ $params->{'product'} || [] }) { foreach my $name (@{ $params->{'products'} || [] }) {
my $object = $user->can_enter_product($name, THROW_ERROR); my $object = $user->can_enter_product($name, THROW_ERROR);
push(@products, $object); push(@products, $object);
} }
...@@ -2652,6 +2652,9 @@ search for duplicates. ...@@ -2652,6 +2652,9 @@ search for duplicates.
=item Added in Bugzilla B<4.0>. =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
=back =back
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment