From: lpsolit%gmail.com <> Date: Tue, 21 Jun 2005 03:04:24 +0000 (+0000) Subject: Bug 180792: Setting and/or updating flags does not update last changed date - Patch... X-Git-Tag: bugzilla-2.20rc1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4436350287ea47c1714a2ae583895f04f84a6231;p=thirdparty%2Fbugzilla.git Bug 180792: Setting and/or updating flags does not update last changed date - Patch by Frédéric Buclin r/a=myk --- diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm index 10cbcd0d07..765ad9afad 100644 --- a/Bugzilla/Flag.pm +++ b/Bugzilla/Flag.pm @@ -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); } } diff --git a/attachment.cgi b/attachment.cgi index 8b9bdaafd5..0ed608c521 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -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.