]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 502807: Rename Bug.get_history to Bug.history
authormkanat%bugzilla.org <>
Tue, 7 Jul 2009 22:42:06 +0000 (22:42 +0000)
committermkanat%bugzilla.org <>
Tue, 7 Jul 2009 22:42:06 +0000 (22:42 +0000)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat

Bugzilla/WebService/Bug.pm

index 0a22ffb1a6f5175d63170b9974156467076ff072..1f26d1288d825e30c2624132cea54a4626c696ac 100755 (executable)
@@ -60,7 +60,12 @@ use constant PRODUCT_SPECIFIC_FIELDS => qw(version target_milestone component);
 # Add aliases here for old method name compatibility #
 ######################################################
 
-BEGIN { *get_bugs = \&get }
+BEGIN { 
+  # In 3.0, get was called get_bugs
+  *get_bugs = \&get;
+  # Before 3.4rc1, "history" was get_history.
+  *get_history = \&history;
+}
 
 ###########
 # Methods #
@@ -178,8 +183,8 @@ sub get {
 
 # this is a function that gets bug activity for list of bug ids 
 # it can be called as the following:
-# $call = $rpc->call( 'Bug.get_history', { ids => [1,2] });
-sub get_history {
+# $call = $rpc->call( 'Bug.history', { ids => [1,2] });
+sub history {
     my ($self, $params) = validate(@_, 'ids');
 
     my $ids = $params->{ids};
@@ -897,7 +902,7 @@ in Bugzilla B<3.4>:
 
 =back
 
-=item C<get_history> 
+=item C<history> 
 
 B<UNSTABLE>