]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 583165: (Un)setting a comment as private doesn't update bugs.delta_ts
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 2 Aug 2010 23:10:28 +0000 (01:10 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 2 Aug 2010 23:10:28 +0000 (01:10 +0200)
r/a=mkanat

Bugzilla/Bug.pm

index bcc7b2aeb05b87833cc42814ec6721838c72bdc9..d68d4e7096f0689de59bc821dd2c63ace740fa17 100644 (file)
@@ -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;