aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-04-10 01:23:42 +0000
committerlpsolit%gmail.com <>2006-04-10 01:23:42 +0000
commit82982fbd12c68697d89d091385195f3622a144d0 (patch)
treebf38e4cec575e839e0eb275528dd8cb4e4dce8e3
parentc516741d33135d57751673302c3b0c863454cd6e (diff)
downloadbugs-82982fbd12c68697d89d091385195f3622a144d0.tar
bugs-82982fbd12c68697d89d091385195f3622a144d0.tar.gz
bugs-82982fbd12c68697d89d091385195f3622a144d0.tar.bz2
bugs-82982fbd12c68697d89d091385195f3622a144d0.tar.xz
bugs-82982fbd12c68697d89d091385195f3622a144d0.zip
Bug 332705: Taking a bug when posting a new attachment doesn't update the 'duplicates' table - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
-rwxr-xr-xattachment.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 1fd3c1994..fbf04e597 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -1069,7 +1069,11 @@ sub insert
SendSQL("UPDATE bugs SET delta_ts = $sql_timestamp, " .
join(", ", map("$fields[$_] = $newvalues[$_]", (0..3))) .
" WHERE bug_id = $bugid");
-
+
+ # If the bug was a dupe, we have to remove its entry from the
+ # 'duplicates' table.
+ $dbh->do('DELETE FROM duplicates WHERE dupe = ?', undef, $bugid);
+
# We store email addresses in the bugs_activity table rather than IDs.
$oldvalues[0] = $oldvalues[4];
$newvalues[0] = $newvalues[4];