From e49e5f215fe95a27bc1c779746ff5724af5b1c2a Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 17 May 2010 18:34:44 +0200 Subject: Bug 560281: Do not display deleted attachments in "View All" a=LpSolit --- attachment.cgi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'attachment.cgi') 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; -- cgit v1.2.3-24-g4f1b