Closed Bug 847448 Opened 7 years ago Closed 7 years ago
Add url field (bug
_file _loc) to form .doc
We would like the form.mdn form for submitting documentation requests to accept a new field: The field (called "MDN Page to Update") should accept a URL of a page on MDN (so it should always be https://developer.mozilla.org/ plus something). The field is optional. This field should be able to be filled out by a query string when the form is loaded. What we'd like to do is be able to put a button on pages on MDN that would let users submit a problem report, and have that field automatically filled out. When this query is used, the "Request Type" should automatically be set to "Correction" as well.
it'll best to simply expose the bug_file_loc field in the mdn format, which is bugzilla's internal name for the 'url' field.
Summary: Add new field with query string support to form.mdn → Add url field (bug_file_loc) to form.mdn
Change committed to test instance for feedback: https://bugzilla-stage-tip.mozilla.org/form.mdn An example to test the new field you can do: https://bugzilla-stage-tip.mozilla.org/form.mdn?bug_file_loc=https://developer.mozilla.org dkl
Assignee: nobody → dkl
Status: NEW → ASSIGNED
Ah man, I'm sorry. I meant "form.doc" not "form.mdn". I'm an idiot. This change is for the doc request form (form.doc) rather than the site bug form. Sorry!
No problem. Will work up a diff patch and put it up for feedback. dkl
Summary: Add url field (bug_file_loc) to form.mdn → Add url field (bug_file_loc) to form.doc
(In reply to David Lawrence [:dkl] from comment #4) > No problem. Will work up a diff patch and put it up for feedback. > > dkl Have you had a chance to do this yet? Thanks...
I have upload the needed changes to the doc form to our test instance for your feedback. https://bugzilla-dev.allizom.org/form.doc You can add a URL to the form by appending ?bug_file_loc=https://bugzilla.mozilla.org etc. dkl
(In reply to David Lawrence [:dkl] from comment #6) > I have upload the needed changes to the doc form to our test instance for > your feedback. > > https://bugzilla-dev.allizom.org/form.doc > > You can add a URL to the form by appending > ?bug_file_loc=https://bugzilla.mozilla.org etc. Seems to work great; thanks! I look forward to seeing it land (presumably next Wednesday night?).
As luck would have it, we have to do a second push this week due to another critical bug so it may go out tonight. Committing to: bzr+ssh://firstname.lastname@example.org/bmo/4.2 modified .htaccess modified extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl Committed revision 8662. dkl
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.