From c465a2a38e87e3e638c48abe29470a5ec706b572 Mon Sep 17 00:00:00 2001 From: Guy Pyrzak Date: Sat, 2 Oct 2010 16:50:02 -0700 Subject: Bug 414509: offer View All (non obsolete) attachments r=LpSolit, a=LpSolit --- attachment.cgi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'attachment.cgi') 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; -- cgit v1.2.3-24-g4f1b