The default bug view has changed. See this FAQ.

Pre-populate form.fxos.feature fields with GET parameters

RESOLVED FIXED

Status

()

bugzilla.mozilla.org
Custom Bug Entry Forms
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: drs, Assigned: dkl)

Tracking

Production

Details

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
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".
(Reporter)

Updated

2 years ago
Depends on: 1181453
(Assignee)

Comment 1

2 years ago
Created attachment 8641485 [details] [diff] [review]
1188561_1.patch

example url tested with:

http://fedora/1188561/form.fxos.feature?short_desc=test&description=test&feature_type=existing&component=Bluetooth&bug_file_loc=test&cc=dkl@mozilla.com&discussion=yes
Assignee: nobody → dkl
Status: NEW → ASSIGNED
Attachment #8641485 - Flags: review?(glob)
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>

[%=
Attachment #8641485 - Flags: review?(glob) → review+
(Assignee)

Comment 3

2 years ago
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   61b3449..3cd9430  master -> master
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.