diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2010-05-17 18:34:44 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-05-17 18:34:44 +0200 |
commit | e49e5f215fe95a27bc1c779746ff5724af5b1c2a (patch) | |
tree | bd4813e55a85cc885d17934893b142982627aac2 /attachment.cgi | |
parent | f7dde138a05e914d4ee10586fcbbbbade0e5ab8f (diff) | |
download | bugzilla-e49e5f215fe95a27bc1c779746ff5724af5b1c2a.tar.gz bugzilla-e49e5f215fe95a27bc1c779746ff5724af5b1c2a.tar.xz |
Bug 560281: Do not display deleted attachments in "View All"
a=LpSolit
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 2 |
1 files changed, 2 insertions, 0 deletions
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; |