summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-06-21 05:04:24 +0200
committerlpsolit%gmail.com <>2005-06-21 05:04:24 +0200
commit4436350287ea47c1714a2ae583895f04f84a6231 (patch)
tree8c9cb03bed45100493e3fe10a529b575a9624fb6
parent973bac6ec2b118ced70d88a0fa0945aa935edc21 (diff)
downloadbugzilla-4436350287ea47c1714a2ae583895f04f84a6231.tar.gz
bugzilla-4436350287ea47c1714a2ae583895f04f84a6231.tar.xz
Bug 180792: Setting and/or updating flags does not update last changed date - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=myk
-rw-r--r--Bugzilla/Flag.pm3
-rwxr-xr-xattachment.cgi2
2 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm
index 10cbcd0d0..765ad9afa 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 8b9bdaafd..0ed608c52 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.