From d1577fa0afc1dff7729c201879127d1c3609c0c7 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Mon, 7 Nov 2011 15:16:03 -0500 Subject: Bug 691672 - Apply the background color for security bugs to attachment details pages for those bugs as well r=glob --- extensions/BMO/Extension.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'extensions/BMO/Extension.pm') diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index 909e1354b..bd00045e5 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -135,6 +135,11 @@ sub template_before_process { # to see if various field values should be available to the current user. $vars->{'default'} = Bugzilla::Extension::BMO::FakeBug->new($vars->{'default'} || {}); } + + if ($file =~ /^attachment\/diff-header\./) { + my $attachid = $vars->{attachid} ? $vars->{attachid} : $vars->{newid}; + $vars->{attachment} = Bugzilla::Attachment->new($attachid) if $attachid; + } } sub page_before_template { -- cgit v1.2.3-24-g4f1b