diff options
author | Dave Lawrence <dkl@mozilla.com> | 2011-11-07 21:16:03 +0100 |
---|---|---|
committer | Dave Lawrence <dkl@mozilla.com> | 2011-11-07 21:16:03 +0100 |
commit | d1577fa0afc1dff7729c201879127d1c3609c0c7 (patch) | |
tree | e87094e2671a4c2e79b854203f3506f67dccbc93 /extensions/BMO/Extension.pm | |
parent | a69987ae8fbc227ec1bf4633ad308be81c9f9ff3 (diff) | |
download | bugzilla-d1577fa0afc1dff7729c201879127d1c3609c0c7.tar.gz bugzilla-d1577fa0afc1dff7729c201879127d1c3609c0c7.tar.xz |
Bug 691672 - Apply the background color for security bugs to attachment details pages for those bugs as well
r=glob
Diffstat (limited to 'extensions/BMO/Extension.pm')
-rw-r--r-- | extensions/BMO/Extension.pm | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |