From: Frédéric Buclin Date: Mon, 17 May 2010 16:34:44 +0000 (+0200) Subject: Bug 560281: Do not display deleted attachments in "View All" X-Git-Tag: bugzilla-3.7.1~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e49e5f215fe95a27bc1c779746ff5724af5b1c2a;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 b79c649f42..b6515d037f 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;