From: dkl%redhat.com <> Date: Thu, 19 Jun 2008 20:39:19 +0000 (+0000) Subject: Bug 437614 – Product.get_products should be accessible as Product.get X-Git-Tag: bugzilla-3.2rc1~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87b0a5d1816884071f4b8aa415147f471378935f;p=thirdparty%2Fbugzilla.git Bug 437614 – Product.get_products should be accessible as Product.get Patch by David Lawrence r/a=mkanat --- diff --git a/Bugzilla/WebService/Product.pm b/Bugzilla/WebService/Product.pm index fb11a00bce..995e0adc02 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 B +=item C B =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 A hash containing one item, C, that is an array of product ids.