aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-07-07 22:41:03 +0000
committermkanat%bugzilla.org <>2009-07-07 22:41:03 +0000
commit86af4d84ad316ea48c8db1104366e6d68df93290 (patch)
tree9b1732d180f7e613151864d776c55bdcb5d358a5 /Bugzilla
parentBug 502698: jsonrpc.cgi was missing "use Bugzilla::Error" (diff)
downloadbugzilla-86af4d84ad316ea48c8db1104366e6d68df93290.tar.gz
bugzilla-86af4d84ad316ea48c8db1104366e6d68df93290.tar.bz2
bugzilla-86af4d84ad316ea48c8db1104366e6d68df93290.zip
Bug 502807: Rename Bug.get_history to Bug.history
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
Diffstat (limited to 'Bugzilla')
-rwxr-xr-xBugzilla/WebService/Bug.pm13
1 files changed, 9 insertions, 4 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index 483b11ca7..e88db0773 100755
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -65,7 +65,12 @@ use constant DATE_FIELDS => {
# 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 #
@@ -183,8 +188,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};
@@ -1043,7 +1048,7 @@ in Bugzilla B<3.4>:
=back
-=item C<get_history>
+=item C<history>
B<UNSTABLE>