From 34b3230eb1b4109204ae0c04dbb9000baac36d37 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 5 Oct 2007 02:38:40 +0000 Subject: [PATCH] =?utf8?q?Bug=20398420:=20Midair=20collision=20protection?= =?utf8?q?=20is=20broken=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric?= =?utf8?q?=20Buclin=20=20r=3Dmkanat=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index bbcd759d3c..067dc484e5 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -547,6 +547,12 @@ sub update { $changes->{'dupe_of'} = [$dup_id, undef]; } + # If any change occurred, refresh the timestamp of the bug. + if (scalar(keys %$changes) || $self->{added_comments}) { + $dbh->do('UPDATE bugs SET delta_ts = ? WHERE bug_id = ?', + undef, ($delta_ts, $self->id)); + } + return $changes; } @@ -689,6 +695,9 @@ sub update_keywords { my $added_names = join(', ', (map {$_->name} @$added_keywords)); LogActivityEntry($self->id, "keywords", $removed_names, $added_names, Bugzilla->user->id, $delta_ts); + + $dbh->do('UPDATE bugs SET delta_ts = ? WHERE bug_id = ?', + undef, ($delta_ts, $self->id)); } return [$removed_keywords, $added_keywords]; -- 2.47.3