diff options
author | Guy Pyrzak <guy.pyrzak@gmail.com> | 2010-10-02 16:50:02 -0700 |
---|---|---|
committer | Guy Pyrzak <guy.pyrzak@gmail.com> | 2010-10-02 16:50:02 -0700 |
commit | c465a2a38e87e3e638c48abe29470a5ec706b572 (patch) | |
tree | 8cb456af6f026d2ee389049b1c30f4eac36847e2 /attachment.cgi | |
parent | Bug 601218: Do not display (show) when the CC list is empty (diff) | |
download | bugzilla-c465a2a38e87e3e638c48abe29470a5ec706b572.tar.gz bugzilla-c465a2a38e87e3e638c48abe29470a5ec706b572.tar.bz2 bugzilla-c465a2a38e87e3e638c48abe29470a5ec706b572.zip |
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; |