summaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-05-17 18:34:44 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-05-17 18:34:44 +0200
commite49e5f215fe95a27bc1c779746ff5724af5b1c2a (patch)
treebd4813e55a85cc885d17934893b142982627aac2 /attachment.cgi
parentf7dde138a05e914d4ee10586fcbbbbade0e5ab8f (diff)
downloadbugzilla-e49e5f215fe95a27bc1c779746ff5724af5b1c2a.tar.gz
bugzilla-e49e5f215fe95a27bc1c779746ff5724af5b1c2a.tar.xz
Bug 560281: Do not display deleted attachments in "View All"
a=LpSolit
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/attachment.cgi b/attachment.cgi
index b79c649f4..b6515d037 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -377,6 +377,8 @@ sub viewall {
my $bugid = $bug->id;
my $attachments = Bugzilla::Attachment->get_attachments_by_bug($bugid);
+ # Ignore deleted attachments.
+ @$attachments = grep { $_->datasize } @$attachments;
# Define the variables and functions that will be passed to the UI template.
$vars->{'bug'} = $bug;