From 0ea9d8ff5e82ff74b5e7290c8151f1e2dc7843ed Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 29 Jan 2007 05:19:12 +0000 Subject: [PATCH] =?utf8?q?Bug=20361842:=20When=20filing=20a=20bug=20with?= =?utf8?q?=20dependencies,=20delta=5Fts=20is=20not=20updated=20on=20depend?= =?utf8?q?ent=20bugs,=20preventing=20correct=20midair=20collision=20detect?= =?utf8?q?ion=20in=20these=20bugs=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83?= =?utf8?q?=C2=A9ric=20Buclin=20=20r=3Dbkor=20a=3DLpSoli?= =?utf8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 3d8a48ac41..8591a2f890 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -303,17 +303,21 @@ sub create { # Set up dependencies (blocked/dependson) my $sth_deps = $dbh->prepare( 'INSERT INTO dependencies (blocked, dependson) VALUES (?, ?)'); + my $sth_bug_time = $dbh->prepare('UPDATE bugs SET delta_ts = ? WHERE bug_id = ?'); + foreach my $depends_on_id (@$depends_on) { $sth_deps->execute($bug->bug_id, $depends_on_id); # Log the reverse action on the other bug. LogActivityEntry($depends_on_id, 'blocked', '', $bug->bug_id, $bug->{reporter_id}, $timestamp); + $sth_bug_time->execute($timestamp, $depends_on_id); } foreach my $blocked_id (@$blocked) { $sth_deps->execute($blocked_id, $bug->bug_id); # Log the reverse action on the other bug. LogActivityEntry($blocked_id, 'dependson', '', $bug->bug_id, $bug->{reporter_id}, $timestamp); + $sth_bug_time->execute($timestamp, $blocked_id); } # And insert the comment. We always insert a comment on bug creation, -- 2.47.3