summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-06 04:55:02 +0200
committerByron Jones <glob@mozilla.com>2015-07-06 04:55:02 +0200
commitf9e2d3dcdda92e969e7bb61f773f6e562ed7371d (patch)
tree2d406caf1129fb05d9b3ac0c886e173100d22a93 /extensions/BugModal
parent476af6ff95204205fe59a14e020e9c2d8a8e7800 (diff)
downloadbugzilla-f9e2d3dcdda92e969e7bb61f773f6e562ed7371d.tar.gz
bugzilla-f9e2d3dcdda92e969e7bb61f773f6e562ed7371d.tar.xz
Bug 1180449: The modal user interface has changed the behavior of ctype=xml URLs
Diffstat (limited to 'extensions/BugModal')
-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;