summaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
authorGuy Pyrzak <guy.pyrzak@gmail.com>2010-10-03 01:50:02 +0200
committerGuy Pyrzak <guy.pyrzak@gmail.com>2010-10-03 01:50:02 +0200
commitc465a2a38e87e3e638c48abe29470a5ec706b572 (patch)
tree8cb456af6f026d2ee389049b1c30f4eac36847e2 /attachment.cgi
parent45071f40f52131bc605130c40352d477f85d0f05 (diff)
downloadbugzilla-c465a2a38e87e3e638c48abe29470a5ec706b572.tar.gz
bugzilla-c465a2a38e87e3e638c48abe29470a5ec706b572.tar.xz
Bug 414509: offer View All (non obsolete) attachments
r=LpSolit, a=LpSolit
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 8117131b3..8f8004b07 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -381,6 +381,11 @@ sub viewall {
# Ignore deleted attachments.
@$attachments = grep { $_->datasize } @$attachments;
+ if ($cgi->param('hide_obsolete')) {
+ @$attachments = grep { !$_->isobsolete } @$attachments;
+ $vars->{'hide_obsolete'} = 1;
+ }
+
# Define the variables and functions that will be passed to the UI template.
$vars->{'bug'} = $bug;
$vars->{'attachments'} = $attachments;