diff options
Diffstat (limited to 'Bugzilla/WebService')
-rwxr-xr-x | Bugzilla/WebService/Bug.pm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index c4361e679..01d5c16eb 100755 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -57,11 +57,17 @@ use constant GLOBAL_SELECT_FIELDS => qw( use constant PRODUCT_SPECIFIC_FIELDS => qw(version target_milestone component); +###################################################### +# Add aliases here for old method name compatibility # +###################################################### + +BEGIN { *get_bugs = \&get } + ########### # Methods # ########### -sub get_bugs { +sub get { my ($self, $params) = @_; my $ids = $params->{ids}; defined $ids || ThrowCodeError('param_required', { param => 'ids' }); @@ -280,7 +286,7 @@ You specified a field that doesn't exist or isn't a drop-down field. =over -=item C<get_bugs> B<EXPERIMENTAL> +=item C<get> B<EXPERIMENTAL> =over @@ -288,6 +294,8 @@ You specified a field that doesn't exist or isn't a drop-down field. Gets information about particular bugs in the database. +Note: Can also be called as "get_bugs" for compatibilty with Bugzilla 3.0 API. + =item B<Params> =over |