From: Dylan William Hardison Date: Fri, 17 Oct 2014 17:39:36 +0000 (-0400) Subject: Bug 1084490 - Fix Bugzilla::WebService::BugUserLastVisit->get & correct POD X-Git-Tag: bugzilla-5.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=676ae49989afef0721ca846b8ac7572e50933793;p=thirdparty%2Fbugzilla.git Bug 1084490 - Fix Bugzilla::WebService::BugUserLastVisit->get & correct POD r=dkl a=glob --- diff --git a/Bugzilla/WebService/BugUserLastVisit.pm b/Bugzilla/WebService/BugUserLastVisit.pm index 0fc214db87..a29d2633b8 100644 --- a/Bugzilla/WebService/BugUserLastVisit.pm +++ b/Bugzilla/WebService/BugUserLastVisit.pm @@ -69,10 +69,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; } @@ -167,20 +167,13 @@ B =item B -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 To return the last visited timestamp for a single bug id: -GET /rest/bug_visit/ - -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/ =item B