summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-06-05 06:35:04 +0200
committerByron Jones <glob@mozilla.com>2014-06-05 06:35:04 +0200
commit66c3f7d90ba7eb9f7d6c73de742aea03ccc47684 (patch)
tree96fe11c8a607efeefe639511a4702d725f89d27a /Bugzilla
parent15b70d2e88e112a7764d8b2c90794b1860c4a234 (diff)
downloadbugzilla-66c3f7d90ba7eb9f7d6c73de742aea03ccc47684.tar.gz
bugzilla-66c3f7d90ba7eb9f7d6c73de742aea03ccc47684.tar.xz
Bug 1020023: update a user's last-visited timestamp for a bug when they perform any actions on it
r=dkl,a=glob
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 9fa40d10b..d10fbdfd7 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -1047,6 +1047,11 @@ sub update {
$self->{delta_ts} = $delta_ts;
}
+ # Update last-visited
+ if ($user->is_involved_in_bug($self)) {
+ $self->update_user_last_visit($user, $delta_ts);
+ }
+
# Update bug ignore data if user wants to ignore mail for this bug
if (exists $self->{'bug_ignored'}) {
my $bug_ignored_changed;