From ad6fd6d8ea77221f417b9d67daa0b8a98aa5f66c Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Tue, 3 Aug 2010 01:09:03 +0200 Subject: Bug 583165: Un(setting) a comment as private doesn't update bugs.delta_ts r/a=mkanat --- Bugzilla/Bug.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Bug.pm') 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; -- cgit v1.2.3-24-g4f1b