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' });
=over
-=item C<get_bugs> B<EXPERIMENTAL>
+=item C<get> B<EXPERIMENTAL>
=over
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
=head2 Retrieving Bug Information
-Call C<Bug.get_bug> with the ID of the bug you want to know more of.
-The call will return a C<Bugzilla::Bug> object.
+Call C<Bug.get> with the ID of the bug you want to know more of.
+The call will return a C<Bugzilla::Bug> object.
+
+Note: You can also use "Bug.get_bugs" for compatibility with Bugzilla 3.0 API.
=cut
if ($bug_id) {
- $soapresult = $proxy->call('Bug.get_bugs', { ids => [$bug_id] });
+ $soapresult = $proxy->call('Bug.get', { ids => [$bug_id] });
_die_on_fault($soapresult);
$result = $soapresult->result;
my $bug = $result->{bugs}->[0];