diff options
author | Guy Pyrzak <guy.pyrzak@gmail.com> | 2010-10-03 01:50:02 +0200 |
---|---|---|
committer | Guy Pyrzak <guy.pyrzak@gmail.com> | 2010-10-03 01:50:02 +0200 |
commit | c465a2a38e87e3e638c48abe29470a5ec706b572 (patch) | |
tree | 8cb456af6f026d2ee389049b1c30f4eac36847e2 /attachment.cgi | |
parent | 45071f40f52131bc605130c40352d477f85d0f05 (diff) | |
download | bugzilla-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-x | attachment.cgi | 5 |
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; |