summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authordkl%redhat.com <>2008-06-19 22:37:22 +0200
committerdkl%redhat.com <>2008-06-19 22:37:22 +0200
commit467e7a755265bf997099f00c8ec5773eb26819ff (patch)
tree4a64b9b7ca68205b1cc1520a8a7a98d500da2ab6 /Bugzilla/WebService
parent4014594182ac5e144319dd424322234068176848 (diff)
downloadbugzilla-467e7a755265bf997099f00c8ec5773eb26819ff.tar.gz
bugzilla-467e7a755265bf997099f00c8ec5773eb26819ff.tar.xz
Bug 437614 – Product.get_products should be accessible as Product.get
Patch by David Lawrence <dkl@redhat.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/WebService')
-rwxr-xr-xBugzilla/WebService/Product.pm12
1 files changed, 10 insertions, 2 deletions
diff --git a/Bugzilla/WebService/Product.pm b/Bugzilla/WebService/Product.pm
index fb11a00bc..995e0adc0 100755
--- a/Bugzilla/WebService/Product.pm
+++ b/Bugzilla/WebService/Product.pm
@@ -23,6 +23,12 @@ use Bugzilla::Product;
use Bugzilla::User;
import SOAP::Data qw(type);
+##################################################
+# Add aliases here for method name compatibility #
+##################################################
+
+BEGIN { *get_products = \&get }
+
# Get the ids of the products the user can search
sub get_selectable_products {
return {ids => [map {$_->id} @{Bugzilla->user->get_selectable_products}]};
@@ -39,7 +45,7 @@ sub get_accessible_products {
}
# Get a list of actual products, based on list of ids
-sub get_products {
+sub get {
my ($self, $params) = @_;
# Only products that are in the users accessible products,
@@ -147,7 +153,7 @@ ids.
=back
-=item C<get_products> B<UNSTABLE>
+=item C<get> B<UNSTABLE>
=over
@@ -155,6 +161,8 @@ ids.
Returns a list of information about the products passed to it.
+Note: Can also be called as "get_products" for compatibilty with Bugzilla 3.0 API.
+
=item B<Params>
A hash containing one item, C<ids>, that is an array of product ids.