From: Frédéric Buclin Date: Mon, 17 May 2010 16:37:46 +0000 (+0200) Subject: Bug 560281: Do not display deleted attachments in "View All" X-Git-Tag: bugzilla-3.6.1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dd811d1f33e5b45265405dfce17a0dced30bfe6;p=thirdparty%2Fbugzilla.git Bug 560281: Do not display deleted attachments in "View All" a=LpSolit --- 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;