From 29e7af16944c6933256ff4de844a3e9aad527304 Mon Sep 17 00:00:00 2001 From: "olav%bkor.dhs.org" Date: Sun, 21 Jan 2007 15:11:52 +0000 Subject: [PATCH] Bug 367649: Deleting an attachment should set isobsolete to 1 Patch by Olav Vitters r=LpSolit a=LpSolit --- webtools/bugzilla/attachment.cgi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webtools/bugzilla/attachment.cgi b/webtools/bugzilla/attachment.cgi index 7c3605bfd0a7..578adfac0979 100755 --- a/webtools/bugzilla/attachment.cgi +++ b/webtools/bugzilla/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;