summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/BugModal/Extension.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/extensions/BugModal/Extension.pm b/extensions/BugModal/Extension.pm
index e19e06726..4926f7414 100644
--- a/extensions/BugModal/Extension.pm
+++ b/extensions/BugModal/Extension.pm
@@ -43,8 +43,12 @@ sub edit_bug_format {
}
sub _alternative_show_bug_format {
+ my $cgi = Bugzilla->cgi;
my $user = Bugzilla->user;
- if (my $format = Bugzilla->cgi->param('format')) {
+ if (my $ctype = $cgi->param('ctype')) {
+ return undef if $ctype ne 'html';
+ }
+ if (my $format = $cgi->param('format')) {
return ($format eq '__default__' || $format eq 'default') ? undef : $format;
}
return $user->setting('ui_experiments') eq 'on' ? 'modal' : undef;