aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-01-29 05:20:45 +0000
committerlpsolit%gmail.com <>2007-01-29 05:20:45 +0000
commit90899754d914f468cafc0848e47dbf902eeef39b (patch)
tree68fd5526fd9f5c4eb6bf6b2f53935721b21c554c
parentBug 368147: Upgrade from 2.16 and earlier does not work with DBD::mysql 4.0 (diff)
downloadbugzilla-90899754d914f468cafc0848e47dbf902eeef39b.tar.gz
bugzilla-90899754d914f468cafc0848e47dbf902eeef39b.tar.bz2
bugzilla-90899754d914f468cafc0848e47dbf902eeef39b.zip
Bug 361842: When filing a bug with dependencies, delta_ts is not updated on dependent bugs, preventing correct midair collision detection in these bugs - Patch by Frédéric Buclin <LpSolit@gmail.com> r=bkor a=LpSolit
-rwxr-xr-xpost_bug.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index dd6d020d8..d15f7c558 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -458,6 +458,7 @@ if (UserInGroup("editbugs")) {
" WHERE bug_id = $id");
}
if ($cgi->param('dependson') || $cgi->param('blocked')) {
+ my $sth_bug_time = $dbh->prepare('UPDATE bugs SET delta_ts = ? WHERE bug_id = ?');
foreach my $pair (["blocked", "dependson"], ["dependson", "blocked"]) {
my ($me, $target) = @{$pair};
@@ -467,6 +468,7 @@ if (UserInGroup("editbugs")) {
push(@all_deps, $i); # list for mailing dependent bugs
# Log the activity for the other bug:
LogActivityEntry($i, $me, "", $id, $user->id, $timestamp);
+ $sth_bug_time->execute($timestamp, $i);
}
}
}