From: lpsolit%gmail.com <> Date: Mon, 29 Jan 2007 05:20:45 +0000 (+0000) Subject: Bug 361842: When filing a bug with dependencies, delta_ts is not updated on dependent... X-Git-Tag: bugzilla-2.22.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90899754d914f468cafc0848e47dbf902eeef39b;p=thirdparty%2Fbugzilla.git 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 r=bkor a=LpSolit --- diff --git a/post_bug.cgi b/post_bug.cgi index dd6d020d82..d15f7c5589 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); } } }