From 66c3f7d90ba7eb9f7d6c73de742aea03ccc47684 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 5 Jun 2014 12:35:04 +0800 Subject: Bug 1020023: update a user's last-visited timestamp for a bug when they perform any actions on it r=dkl,a=glob --- Bugzilla/Bug.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Bugzilla/Bug.pm') 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; -- cgit v1.2.3-24-g4f1b