From 3cd9430a0de3f9a4c066688ef6972b323aff6bea Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 30 Jul 2015 01:43:21 +0000 Subject: Bug 1188561: Pre-populate form.fxos.feature fields with GET parameters --- extensions/BMO/Extension.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'extensions/BMO/Extension.pm') diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index 4b3c3bb6e..3fa547d7a 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -2199,4 +2199,16 @@ sub _split_crash_signature { ]; } +sub enter_bug_entrydefaultvars { + my ($self, $args) = @_; + my $vars = $args->{vars}; + my $cgi = Bugzilla->cgi; + + if ($cgi->param('format') eq 'fxos-feature') { + $vars->{feature_type} = $cgi->param('feature_type'); + $vars->{description} = $cgi->param('description'); + $vars->{discussion} = $cgi->param('discussion'); + } +} + __PACKAGE__->NAME; -- cgit v1.2.3-24-g4f1b