summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/API/1_0/Resource/BugUserLastVisit.pm2
-rw-r--r--Bugzilla/WebService/BugUserLastVisit.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/API/1_0/Resource/BugUserLastVisit.pm b/Bugzilla/API/1_0/Resource/BugUserLastVisit.pm
index 1d2d4f582..1cb12a05a 100644
--- a/Bugzilla/API/1_0/Resource/BugUserLastVisit.pm
+++ b/Bugzilla/API/1_0/Resource/BugUserLastVisit.pm
@@ -87,7 +87,7 @@ sub update {
push(
@results,
_bug_user_last_visit_to_hash(
- $bug, $last_visit_ts, $params
+ $bug->bug_id, $last_visit_ts, $params
));
}
$dbh->bz_commit_transaction();
diff --git a/Bugzilla/WebService/BugUserLastVisit.pm b/Bugzilla/WebService/BugUserLastVisit.pm
index 3ee8cac03..498dd9044 100644
--- a/Bugzilla/WebService/BugUserLastVisit.pm
+++ b/Bugzilla/WebService/BugUserLastVisit.pm
@@ -52,7 +52,7 @@ sub update {
push(
@results,
$self->_bug_user_last_visit_to_hash(
- $bug, $last_visit_ts, $params
+ $bug->bug_id, $last_visit_ts, $params
));
}
$dbh->bz_commit_transaction();