summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-06-06 06:15:51 +0200
committerByron Jones <glob@mozilla.com>2014-06-06 06:15:51 +0200
commite33a04dd4ef4399d00c32a0059aed2e210b3f1a6 (patch)
tree0e0cfcc0d96612f8f725fcfe9587b02d525bbe32 /Bugzilla
parent685776f18291c4c0ee0ce729318b36d025be55f4 (diff)
downloadbugzilla-e33a04dd4ef4399d00c32a0059aed2e210b3f1a6.tar.gz
bugzilla-e33a04dd4ef4399d00c32a0059aed2e210b3f1a6.tar.xz
Bug 1020023: update a user's last-visited timestamp for a bug when they perform any actions on it
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 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;