From: olav%bkor.dhs.org <> Date: Sun, 21 Jan 2007 23:11:52 +0000 (+0000) Subject: Bug 367649: Deleting an attachment should set isobsolete to 1 X-Git-Tag: bugzilla-2.23.4~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7030bab0806220d6644073a5d91ec4620131f21;p=thirdparty%2Fbugzilla.git Bug 367649: Deleting an attachment should set isobsolete to 1 Patch by Olav Vitters r=LpSolit a=LpSolit --- diff --git a/attachment.cgi b/attachment.cgi index 7c3605bfd0..578adfac09 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -804,8 +804,10 @@ sub delete_attachment { $dbh->bz_lock_tables('attachments WRITE', 'attach_data WRITE', 'flags WRITE'); $dbh->do('DELETE FROM attach_data WHERE id = ?', undef, $attach_id); - $dbh->do('UPDATE attachments SET mimetype = ?, ispatch = ?, isurl = ? - WHERE attach_id = ?', undef, ('text/plain', 0, 0, $attach_id)); + $dbh->do('UPDATE attachments SET mimetype = ?, ispatch = ?, isurl = ?, + isobsolete = ? + WHERE attach_id = ?', undef, + ('text/plain', 0, 0, 1, $attach_id)); $dbh->do('DELETE FROM flags WHERE attach_id = ?', undef, $attach_id); $dbh->bz_unlock_tables;