diff options
author | lpsolit%gmail.com <> | 2007-01-29 05:19:12 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-01-29 05:19:12 +0000 |
commit | 0ea9d8ff5e82ff74b5e7290c8151f1e2dc7843ed (patch) | |
tree | e6482b3533059799d865c4a3e0ea4566b926a4e3 | |
parent | 27b4f887d24f0a667a4aab83276e7c93cd726e10 (diff) | |
download | bugs-0ea9d8ff5e82ff74b5e7290c8151f1e2dc7843ed.tar bugs-0ea9d8ff5e82ff74b5e7290c8151f1e2dc7843ed.tar.gz bugs-0ea9d8ff5e82ff74b5e7290c8151f1e2dc7843ed.tar.bz2 bugs-0ea9d8ff5e82ff74b5e7290c8151f1e2dc7843ed.tar.xz bugs-0ea9d8ff5e82ff74b5e7290c8151f1e2dc7843ed.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-x | Bugzilla/Bug.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 3d8a48ac4..8591a2f89 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, |