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 ++++++++++++ .../bug/create/create-fxos-feature.html.tmpl | 21 +++++++++++++-------- 2 files changed, 25 insertions(+), 8 deletions(-) (limited to 'extensions/BMO') 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; diff --git a/extensions/BMO/template/en/default/bug/create/create-fxos-feature.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-fxos-feature.html.tmpl index ec0cc84c9..ae6a8873f 100644 --- a/extensions/BMO/template/en/default/bug/create/create-fxos-feature.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-fxos-feature.html.tmpl @@ -149,8 +149,10 @@ $(function() { Is this a defect with existing functionality or a new feature request? @@ -160,7 +162,8 @@ $(function() { Please enter a title for your feature request that is brief and self explanatory. (Example: "Memory dialing using keypad numbers") - +
@@ -171,7 +174,8 @@ $(function() { Instead the user must search for an find the contact in their contact list."). If the described feature only applies to certain device types (eg. tablet vs. smartphone), please make note of it.
- +
@@ -179,8 +183,8 @@ $(function() {
@@ -190,7 +194,8 @@ $(function() { The mailing list post where this was discussed.
e.g. https://groups.google.com/a/mozilla.com/forum/#!topic/foxfood-feedback/eCg6KaVD4FE - +