summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-08-03 01:09:03 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-08-03 01:09:03 +0200
commitad6fd6d8ea77221f417b9d67daa0b8a98aa5f66c (patch)
treef70bb3ceaf90fc8cf6ee84325576607069faad4a /Bugzilla
parent5b0be2596d828e3766e320d0e410613faaa33e8f (diff)
downloadbugzilla-ad6fd6d8ea77221f417b9d67daa0b8a98aa5f66c.tar.gz
bugzilla-ad6fd6d8ea77221f417b9d67daa0b8a98aa5f66c.tar.xz
Bug 583165: Un(setting) a comment as private doesn't update bugs.delta_ts
r/a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index b9fffe779..16ed32449 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -983,7 +983,9 @@ sub update {
old_bug => $old_bug });
# If any change occurred, refresh the timestamp of the bug.
- if (scalar(keys %$changes) || $self->{added_comments}) {
+ if (scalar(keys %$changes) || $self->{added_comments}
+ || $self->{comment_isprivate})
+ {
$dbh->do('UPDATE bugs SET delta_ts = ? WHERE bug_id = ?',
undef, ($delta_ts, $self->id));
$self->{delta_ts} = $delta_ts;