summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-10-05 04:38:40 +0200
committerlpsolit%gmail.com <>2007-10-05 04:38:40 +0200
commit34b3230eb1b4109204ae0c04dbb9000baac36d37 (patch)
tree467d43158421b1916ff6aaeb118dfdd3cf046630 /Bugzilla
parent4c93d5fbcc1e5b8777ef26ea217c8de38d290fa6 (diff)
downloadbugzilla-34b3230eb1b4109204ae0c04dbb9000baac36d37.tar.gz
bugzilla-34b3230eb1b4109204ae0c04dbb9000baac36d37.tar.xz
Bug 398420: Midair collision protection is broken - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
Diffstat (limited to 'Bugzilla')
-rwxr-xr-xBugzilla/Bug.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index bbcd759d3..067dc484e 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];