Last Comment Bug 1188561 - Pre-populate form.fxos.feature fields with GET parameters
: Pre-populate form.fxos.feature fields with GET parameters
Status: RESOLVED FIXED
:
Product: bugzilla.mozilla.org
Classification: Other
Component: Custom Bug Entry Forms (show other bugs)
: Production
: Unspecified Unspecified
-- normal (vote)
: ---
Assigned To: David Lawrence [:dkl]
:
:
Mentors:
Depends on: 1181453
Blocks:
  Show dependency treegraph
 
Reported: 2015-07-28 12:50 PDT by Doug Sherk (:drs) (inactive)
Modified: 2015-07-31 07:48 PDT (History)
1 user (show)
See Also:
Due Date:
QA Whiteboard:
Iteration: ---
Points: ---


Attachments
1188561_1.patch (3.52 KB, patch)
2015-07-30 21:19 PDT, David Lawrence [:dkl]
glob: review+
Details | Diff | Splinter Review

Description User image Doug Sherk (:drs) (inactive) 2015-07-28 12:50:15 PDT
It would be nice if we could pre-populate the fields on the form.fxos.feature form with the GET parameters passed into the form.

e.g. https://bugzilla.mozilla.org/form.fxos.feature?feature_type=Existing%20Feature%20Defect would pre-populate the "This is a feature request" field with "Existing Feature Defect".
Comment 2 User image Byron Jones ‹:glob› 2015-07-31 00:35:33 PDT
Comment on attachment 8641485 [details] [diff] [review]
1188561_1.patch

Review of attachment 8641485 [details] [diff] [review]:
-----------------------------------------------------------------

r=glob

::: extensions/BMO/template/en/default/bug/create/create-fxos-feature.html.tmpl
@@ +183,5 @@
>    <div class="field_desc">
>    </div>
>    <select id="discussion" name="discussion">
> +    <option value="no" [% "selected" IF discussion == 'no' %]>No</option>
> +    <option value="yes" [% "selected" IF discussion == 'yes' %]>Yes</option>

[%=
Comment 3 User image David Lawrence [:dkl] 2015-07-31 07:48:15 PDT
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   61b3449..3cd9430  master -> master

Note You need to log in before you can comment on or make changes to this bug.