From: mkanat%bugzilla.org <> Date: Tue, 7 Jul 2009 22:42:06 +0000 (+0000) Subject: Bug 502807: Rename Bug.get_history to Bug.history X-Git-Tag: bugzilla-3.4rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ad9aa0128864609b3c720e39d62148604ec6415;p=thirdparty%2Fbugzilla.git Bug 502807: Rename Bug.get_history to Bug.history Patch by Max Kanat-Alexander r=LpSolit, a=mkanat --- diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 0a22ffb1a6..1f26d1288d 100755 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -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 +=item C B