summaryrefslogtreecommitdiffstats
path: root/show_bug.cgi
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-03-24 06:45:44 +0100
committerByron Jones <glob@mozilla.com>2015-03-24 06:45:44 +0100
commit3ac701266452d3509776fe58f9e1b2b8e9f33c1e (patch)
tree88124baaadb529b1c9809f6b3fa20384c1870780 /show_bug.cgi
parent11bd061970f8b9c98e6af43a4c8c7ca4bfff9eb3 (diff)
downloadbugzilla-3ac701266452d3509776fe58f9e1b2b8e9f33c1e.tar.gz
bugzilla-3ac701266452d3509776fe58f9e1b2b8e9f33c1e.tar.xz
Bug 1096798: prototype modal show_bug view
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-xshow_bug.cgi15
1 files changed, 12 insertions, 3 deletions
diff --git a/show_bug.cgi b/show_bug.cgi
index 332d5fcbd..06d17e352 100755
--- a/show_bug.cgi
+++ b/show_bug.cgi
@@ -30,6 +30,7 @@ use Bugzilla::Error;
use Bugzilla::User;
use Bugzilla::Keyword;
use Bugzilla::Bug;
+use Bugzilla::Hook;
my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
@@ -37,11 +38,19 @@ my $vars = {};
my $user = Bugzilla->login();
-my $format = $template->get_format("bug/show", scalar $cgi->param('format'),
- scalar $cgi->param('ctype'));
+# BMO: add show_bug_format for experimental UI work
+my $format_params = {
+ format => scalar $cgi->param('format'),
+ ctype => scalar $cgi->param('ctype'),
+};
+Bugzilla::Hook::process('show_bug_format', $format_params);
+my $format = $template->get_format("bug/show",
+ $format_params->{format},
+ $format_params->{ctype});
# Editable, 'single' HTML bugs are treated slightly specially in a few places
-my $single = !$format->{format} && $format->{extension} eq 'html';
+my $single = (!$format->{format} || $format->{format} ne 'multiple')
+ && $format->{extension} eq 'html';
# If we don't have an ID, _AND_ we're only doing a single bug, then prompt
if (!$cgi->param('id') && $single) {