summaryrefslogtreecommitdiffstats
path: root/extensions/BMO
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2016-01-28 15:23:14 +0100
committerDavid Lawrence <dkl@mozilla.com>2016-01-28 15:23:14 +0100
commit3ec68d94eea63f789ce252e87c5d38f15503aa14 (patch)
tree1344df43652a89bcb8ebbf5e6c5412a8a9e9ead3 /extensions/BMO
parentc3a3873b9ff0b2254a08a4dd987adcd8189569b0 (diff)
downloadbugzilla-3ec68d94eea63f789ce252e87c5d38f15503aa14.tar.gz
bugzilla-3ec68d94eea63f789ce252e87c5d38f15503aa14.tar.xz
Bug 1241667 - Trying to report a bug traps the user in an infinite loop
Diffstat (limited to 'extensions/BMO')
-rw-r--r--extensions/BMO/Extension.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index 67f7cc160..3ca3165fe 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -2044,7 +2044,10 @@ sub enter_bug_start {
# format (can be overridden with a __standard__ format)
my $cgi = Bugzilla->cgi;
if ($cgi->param('format')) {
- $cgi->delete('format') if $cgi->param('format') eq '__standard__';
+ if ($cgi->param('format') eq '__standard__') {
+ $cgi->delete('format');
+ $cgi->param('format_forced', 1);
+ }
} elsif (my $format = forced_format($cgi->param('product'))) {
$cgi->param('format', $format);
}