aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan Hardison <dylan@mozilla.com>2015-12-15 20:21:08 -0500
committerDylan Hardison <dylan@mozilla.com>2015-12-15 20:21:08 -0500
commitc7affd0d2497640de0c7967543a2f2732979ea51 (patch)
treee7d609b1c88a56dc04b765cca4847676f803483d /Bugzilla
parente24777264780f6e870e352e76fd2508b48621d72 (diff)
downloadbugs-c7affd0d2497640de0c7967543a2f2732979ea51.tar
bugs-c7affd0d2497640de0c7967543a2f2732979ea51.tar.gz
bugs-c7affd0d2497640de0c7967543a2f2732979ea51.tar.bz2
bugs-c7affd0d2497640de0c7967543a2f2732979ea51.tar.xz
bugs-c7affd0d2497640de0c7967543a2f2732979ea51.zip
Bug 1232180 - Incorrect regexp used to filter bug IDs in Bugzilla::WebService::BugUserLastVisit
r=dkl,a=dkl
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/WebService/BugUserLastVisit.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/WebService/BugUserLastVisit.pm b/Bugzilla/WebService/BugUserLastVisit.pm
index c02812594..56e91ec31 100644
--- a/Bugzilla/WebService/BugUserLastVisit.pm
+++ b/Bugzilla/WebService/BugUserLastVisit.pm
@@ -36,7 +36,7 @@ sub update {
# Cache permissions for bugs. This highly reduces the number of calls to the
# DB. visible_bugs() is only able to handle bug IDs, so we have to skip
# aliases.
- $user->visible_bugs([grep /^[0-9]$/, @$ids]);
+ $user->visible_bugs([grep /^[0-9]+$/, @$ids]);
$dbh->bz_start_transaction();
my @results;
@@ -72,7 +72,7 @@ sub get {
# Cache permissions for bugs. This highly reduces the number of calls to
# the DB. visible_bugs() is only able to handle bug IDs, so we have to
# skip aliases.
- $user->visible_bugs([grep /^[0-9]$/, @$ids]);
+ $user->visible_bugs([grep /^[0-9]+$/, @$ids]);
my %last_visit = map { $_->bug_id => $_->last_visit_ts } @{ $user->last_visited($ids) };
@last_visits = map { $self->_bug_user_last_visit_to_hash($_->id, $last_visit{$_}, $params) } @$ids;