diff options
author | Dylan Hardison <dylan@mozilla.com> | 2016-01-04 22:11:38 +0100 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2016-01-04 22:11:38 +0100 |
commit | efe494e10b6c38836854f375a2382006a40a2b1f (patch) | |
tree | f6504f924750c5c140278a0ffad28207ad29e05a /extensions/BugModal | |
parent | 16176cbde18261361ff1e5d37fb653c64019f22a (diff) | |
download | bugzilla-efe494e10b6c38836854f375a2382006a40a2b1f.tar.gz bugzilla-efe494e10b6c38836854f375a2382006a40a2b1f.tar.xz |
Bug 1233878 - tracking flags don't show up in the view of the bug right after filing
Diffstat (limited to 'extensions/BugModal')
-rw-r--r-- | extensions/BugModal/Extension.pm | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/extensions/BugModal/Extension.pm b/extensions/BugModal/Extension.pm index e929f3fcb..b1356bc34 100644 --- a/extensions/BugModal/Extension.pm +++ b/extensions/BugModal/Extension.pm @@ -165,9 +165,17 @@ sub template_before_process { return; } - return unless $file =~ m#^bug/show-([^\.]+)\.html\.tmpl$#; - my $format = $1; - return unless _alternative_show_bug_format() eq $format; + if ($file =~ m#^bug/show-([^\.]+)\.html\.tmpl$#) { + my $format = $1; + return unless _alternative_show_bug_format() eq $format; + } + elsif ($file ne 'bug_modal/edit.html.tmpl') { + return; + } + + if ($vars->{bug} && !$vars->{bugs}) { + $vars->{bugs} = [$vars->{bug}]; + } return unless $vars->{bugs} |