]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 332705: Taking a bug when posting a new attachment doesn't update the 'duplicates...
authorlpsolit%gmail.com <>
Mon, 10 Apr 2006 01:28:49 +0000 (01:28 +0000)
committerlpsolit%gmail.com <>
Mon, 10 Apr 2006 01:28:49 +0000 (01:28 +0000)
attachment.cgi

index 973b8b528de66ef516403f37f50d3cac4ea6d1ad..09cde402f2492c9cb2bf2953bb4ec146ce52ebfa 100755 (executable)
@@ -1071,7 +1071,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];