From: Dave Lawrence Date: Mon, 23 Jul 2012 22:14:02 +0000 (-0400) Subject: Bug 771107 - List of attachments in attachment details screen does not distinguish... X-Git-Tag: bugzilla-4.3.2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c5d6e253a72c941574165d2a9e147099ec7fb46;p=thirdparty%2Fbugzilla.git Bug 771107 - List of attachments in attachment details screen does not distinguish obsolete attachments r=glob, a=LpSolit --- diff --git a/attachment.cgi b/attachment.cgi index 16c964e477..e696c95a76 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -606,8 +606,6 @@ sub edit { my $bugattachments = Bugzilla::Attachment->get_attachments_by_bug($attachment->bug); - # We only want attachment IDs. - @$bugattachments = map { $_->id } @$bugattachments; my $any_flags_requesteeble = grep { $_->is_requestable && $_->is_requesteeble } @{$attachment->flag_types}; diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl index 2062e6d6cc..67dcabd756 100644 --- a/template/en/default/attachment/edit.html.tmpl +++ b/template/en/default/attachment/edit.html.tmpl @@ -303,10 +303,17 @@
Attachments on [% "$terms.bug ${attachment.bug_id}" FILTER bug_link(attachment.bug_id) FILTER none %]: [% FOREACH a = attachments %] - [% IF a == attachment.id %] - [%+ a %] + [% IF a.isobsolete %] + + [% END %] + [% IF a.id == attachment.id %] + [%+ a.id FILTER html %] [% ELSE %] - [% a %] + [% a.id FILTER html %] + [% END %] + [% IF a.isobsolete %] + [% END %] [% " |" UNLESS loop.last() %] [% END %] diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl index e3cfec8a2e..5401772ea2 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -304,7 +304,6 @@ 'attachment/edit.html.tmpl' => [ 'attachment.id', 'attachment.bug_id', - 'a', 'editable_or_hide', ],