]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 180792: Setting and/or updating flags does not update last changed date - Patch...
authorlpsolit%gmail.com <>
Tue, 21 Jun 2005 03:04:24 +0000 (03:04 +0000)
committerlpsolit%gmail.com <>
Tue, 21 Jun 2005 03:04:24 +0000 (03:04 +0000)
Bugzilla/Flag.pm
attachment.cgi

index 10cbcd0d07842a7585a57ae28bd0993412dd30c1..765ad9afad666001b9ba794f2e5df456a5cab1bb 100644 (file)
@@ -447,6 +447,9 @@ sub update_activity {
                   (bug_id, attach_id, who, bug_when, fieldid, removed, added)
                   VALUES ($bug_id, $attach_id, $::userid, $timestamp,
                   $field_id, $sql_removed, $sql_added)");
+
+        $dbh->do("UPDATE bugs SET delta_ts = $timestamp WHERE bug_id = ?",
+                 undef, $bug_id);
     }
 }
 
index 8b9bdaafd58984fc1d613c30612b7114a7ad455d..0ed608c521d74cc3834769d307c12aa3e3c0b12d 100755 (executable)
@@ -1251,7 +1251,7 @@ sub update
 
   # If the user submitted a comment while editing the attachment,
   # add the comment to the bug.
-  if (defined $cgi->param('comment'))
+  if ($cgi->param('comment'))
   {
     # Prepend a string to the comment to let users know that the comment came
     # from the "edit attachment" screen.