From 0dd811d1f33e5b45265405dfce17a0dced30bfe6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Mon, 17 May 2010 18:37:46 +0200 Subject: [PATCH] Bug 560281: Do not display deleted attachments in "View All" a=LpSolit --- attachment.cgi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/attachment.cgi b/attachment.cgi index 0b389501ba..80a9b3c65d 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -379,6 +379,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; -- 2.47.2