Commit 27cf9640 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 238875: remove %FORM from post_bug.cgi - Patch by Teemu Mannermaa…

Bug 238875: remove %FORM from post_bug.cgi - Patch by Teemu Mannermaa <wicked@etlicon.fi> r=LpSolit a=justdave
parent f9289c13
...@@ -19,33 +19,37 @@ ...@@ -19,33 +19,37 @@
# Contributor(s): Gervase Markham <gerv@gerv.net> # Contributor(s): Gervase Markham <gerv@gerv.net>
#%] #%]
[%# INTERFACE: [%# INTERFACE:
# form: hash. This is the $::FORM variable from a bug submission (i.e. the # This template has no interface.
# fields on a template from enter_bug.cgi.) It can be used to pull out #
# various custom fields and format an initial Description entry from them. # Form variables from a bug submission (i.e. the fields on a template from
# enter_bug.cgi) can be access via Bugzilla.cgi.param. It can be used to
# pull out various custom fields and format an initial Description entry
# from them.
#%] #%]
[% USE Bugzilla %] [% USE Bugzilla %]
User-Agent: [%+ Bugzilla.cgi.user_agent() %] [% cgi = Bugzilla.cgi %]
Build Identifier: [%+ form.buildid %] User-Agent: [%+ cgi.user_agent() %]
Build Identifier: [%+ cgi.param("buildid") %]
[%+ form.comment IF form.comment %] [%+ cgi.param("comment") IF cgi.param("comment") %]
[%+ IF form.reproducible != "Choose one..." -%] [%+ IF cgi.param("reproducible") != "Choose one..." -%]
Reproducible: [%+ form.reproducible %] Reproducible: [%+ cgi.param("reproducible") %]
[% END %] [% END %]
[% IF !(form.reproduce_steps.match('^1\.\s+2\.\s+3\.\s+$') || form.reproduce_steps.match('^\s+$')) %] [% IF !(cgi.param("reproduce_steps").match('^1\.\s+2\.\s+3\.\s+$') || cgi.param("reproduce_steps").match('^\s+$')) %]
Steps to Reproduce: Steps to Reproduce:
[%+ form.reproduce_steps %] [%+ cgi.param("reproduce_steps") %]
[% END %] [% END %]
[% IF form.actual_results -%] [% IF cgi.param("actual_results") -%]
Actual Results: Actual Results:
[%+ form.actual_results %] [%+ cgi.param("actual_results") %]
[% END %] [% END %]
[% IF form.expected_results %] [% IF cgi.param("expected_results") %]
Expected Results: Expected Results:
[%+ form.expected_results %] [%+ cgi.param("expected_results") %]
[% END %] [% END %]
[%+ form.additional_info %] [%+ cgi.param("additional_info") %]
...@@ -19,8 +19,12 @@ ...@@ -19,8 +19,12 @@
# Contributor(s): Gervase Markham <gerv@gerv.net> # Contributor(s): Gervase Markham <gerv@gerv.net>
#%] #%]
[%# INTERFACE: [%# INTERFACE:
# form: hash. This is the $::FORM variable from a bug submission (i.e. the # This template has no interface.
# fields on a template from enter_bug.cgi.) It can be used to pull out #
# various custom fields and format an initial Description entry from them. # Form variables from a bug submission (i.e. the fields on a template from
# enter_bug.cgi) can be access via Bugzilla.cgi.param. It can be used to
# pull out various custom fields and format an initial Description entry
# from them.
#%] #%]
[% form.comment %] [% USE Bugzilla %]
[% Bugzilla.cgi.param("comment") %]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment