From 0565d657ea0021c160f9ec0806455e9ea7465dc9 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 3 Aug 2015 13:40:22 +0800 Subject: Bug 1190255 - modal UI is used immediately after bug creation, even if preferenced off --- extensions/BMO/Extension.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extensions/BMO') diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index 3fa547d7a..34e346a24 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -2203,8 +2203,9 @@ sub enter_bug_entrydefaultvars { my ($self, $args) = @_; my $vars = $args->{vars}; my $cgi = Bugzilla->cgi; + return unless my $format = $cgi->param('format'); - if ($cgi->param('format') eq 'fxos-feature') { + if ($format eq 'fxos-feature') { $vars->{feature_type} = $cgi->param('feature_type'); $vars->{description} = $cgi->param('description'); $vars->{discussion} = $cgi->param('discussion'); -- cgit v1.2.3-24-g4f1b