summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2014-10-23 18:34:47 +0200
committerDylan William Hardison <dylan@hardison.net>2014-10-23 18:34:47 +0200
commit0e1bc2617acbb15116fbf55646895418559d073e (patch)
treed29a67af403b7430248610f6e4363715a6ebd543
parentdf99d373b173796fab21c9c421c7f9d7f1895413 (diff)
downloadbugzilla-0e1bc2617acbb15116fbf55646895418559d073e.tar.gz
bugzilla-0e1bc2617acbb15116fbf55646895418559d073e.tar.xz
Bug 1086912 - Backport bug Bug 1084490 to bmo (Fix BugUserLastVisit->get)
r=dkl
-rw-r--r--Bugzilla/WebService/BugUserLastVisit.pm15
1 files changed, 4 insertions, 11 deletions
diff --git a/Bugzilla/WebService/BugUserLastVisit.pm b/Bugzilla/WebService/BugUserLastVisit.pm
index 71b637fef..89a1aedd1 100644
--- a/Bugzilla/WebService/BugUserLastVisit.pm
+++ b/Bugzilla/WebService/BugUserLastVisit.pm
@@ -68,10 +68,10 @@ sub get {
$user->visible_bugs([grep /^[0-9]$/, @$ids]);
}
- my @last_visits = @{ $user->last_visits };
+ my @last_visits = @{ $user->last_visited };
if ($ids) {
- # remove bugs that we arn't interested in if ids is passed in.
+ # remove bugs that we are not interested in if ids is passed in.
my %id_set = map { ($_ => 1) } @$ids;
@last_visits = grep { $id_set{ $_->bug_id } } @last_visits;
}
@@ -166,20 +166,13 @@ B<EXPERIMENTAL>
=item B<Description>
-Get the last visited timestamp for one or more specified bug ids or get a
-list of the last 20 visited bugs and their timestamps.
+Get the last visited timestamp for one or more specified bug ids.
=item B<REST>
To return the last visited timestamp for a single bug id:
-GET /rest/bug_visit/<bug-id>
-
-To return more than one bug timestamp or the last 20:
-
-GET /rest/bug_visit
-
-The returned data format is the same as below.
+ GET /rest/bug_user_last_visit/<bug-id>
=item B<Params>