From 66a6bcfa7000cec32f3ba99d4dfeb9e076a326ae Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Mon, 20 Jun 2005 22:20:50 +0000 Subject: [PATCH] Backing out bug 180792. A table is locked as READ while my patch tries to write in it :( git-svn-id: svn://10.0.0.236/trunk@174886 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/Flag.pm | 3 --- mozilla/webtools/bugzilla/attachment.cgi | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/Flag.pm b/mozilla/webtools/bugzilla/Bugzilla/Flag.pm index 765ad9afad6..10cbcd0d078 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Flag.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Flag.pm @@ -447,9 +447,6 @@ 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/mozilla/webtools/bugzilla/attachment.cgi b/mozilla/webtools/bugzilla/attachment.cgi index 0ed608c521d..8b9bdaafd58 100755 --- a/mozilla/webtools/bugzilla/attachment.cgi +++ b/mozilla/webtools/bugzilla/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 ($cgi->param('comment')) + if (defined $cgi->param('comment')) { # Prepend a string to the comment to let users know that the comment came # from the "edit attachment" screen.