summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc1541@hotmail.com <>2011-12-08 00:12:27 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2011-12-08 00:12:27 +0100
commit4badf488d539d7e50c7a156ecc65514796e6345a (patch)
tree3a4b5c0007a9bc46ca1e1489033d784afa750dc6 /attachment.cgi
parentBug 366793: Use sort order param from a saved search when whining (diff)
downloadbugzilla-4badf488d539d7e50c7a156ecc65514796e6345a.tar.gz
bugzilla-4badf488d539d7e50c7a156ecc65514796e6345a.tar.bz2
bugzilla-4badf488d539d7e50c7a156ecc65514796e6345a.zip
Bug 684225: The removal of locally stored attachments should be done from Bugzilla::Attachment->remove_from_db
r/a=LpSolit
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi4
1 files changed, 0 insertions, 4 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 35afc227e..504ade424 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -795,10 +795,6 @@ sub delete_attachment {
# Paste the reason provided by the admin into a comment.
$bug->add_comment($msg);
- # If the attachment is stored locally, remove it.
- if (-e $attachment->_get_local_filename) {
- unlink $attachment->_get_local_filename;
- }
$attachment->remove_from_db();
# Now delete the token.