From: Byron Jones Date: Thu, 5 Jun 2014 04:35:04 +0000 (+0800) Subject: Bug 1020023: update a user's last-visited timestamp for a bug when they perform any... X-Git-Tag: bugzilla-4.5.5~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66c3f7d90ba7eb9f7d6c73de742aea03ccc47684;p=thirdparty%2Fbugzilla.git Bug 1020023: update a user's last-visited timestamp for a bug when they perform any actions on it r=dkl,a=glob --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 9fa40d10bc..d10fbdfd76 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;