From: Frédéric Buclin Date: Mon, 2 Aug 2010 23:10:28 +0000 (+0200) Subject: Bug 583165: (Un)setting a comment as private doesn't update bugs.delta_ts X-Git-Tag: bugzilla-3.7.3~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a45eb12da5b9f360e89eb2394881ae0be1dceb96;p=thirdparty%2Fbugzilla.git Bug 583165: (Un)setting a comment as private doesn't update bugs.delta_ts r/a=mkanat --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index bcc7b2aeb0..d68d4e7096 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;