]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 361842: When filing a bug with dependencies, delta_ts is not updated on dependent...
authorlpsolit%gmail.com <>
Mon, 29 Jan 2007 05:20:45 +0000 (05:20 +0000)
committerlpsolit%gmail.com <>
Mon, 29 Jan 2007 05:20:45 +0000 (05:20 +0000)
post_bug.cgi

index dd6d020d82412cbb6dce1d97a8c341c844c110ed..d15f7c5589e07021df084c3c7477f775059a8ce1 100755 (executable)
@@ -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);
             }
         }
     }