Commit e49e5f21 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 560281: Do not display deleted attachments in "View All"

a=LpSolit
parent f7dde138
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment