From e33a04dd4ef4399d00c32a0059aed2e210b3f1a6 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Fri, 6 Jun 2014 12:15:51 +0800 Subject: Bug 1020023: update a user's last-visited timestamp for a bug when they perform any actions on it --- 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 fe259be27..7eaff06a2 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1064,6 +1064,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