summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug/create
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-04-08 08:59:58 +0200
committerlpsolit%gmail.com <>2005-04-08 08:59:58 +0200
commit27cf96409b41597cb7b76b1ab37e56c26daa8d86 (patch)
tree25599b8e85eea07cca20d5337c00dd6c397a8704 /template/en/default/bug/create
parentf9289c131459af1c5980b7f24ae1e4430a2dec5f (diff)
downloadbugzilla-27cf96409b41597cb7b76b1ab37e56c26daa8d86.tar.gz
bugzilla-27cf96409b41597cb7b76b1ab37e56c26daa8d86.tar.xz
Bug 238875: remove %FORM from post_bug.cgi - Patch by Teemu Mannermaa <wicked@etlicon.fi> r=LpSolit a=justdave
Diffstat (limited to 'template/en/default/bug/create')
-rw-r--r--template/en/default/bug/create/comment-guided.txt.tmpl34
-rw-r--r--template/en/default/bug/create/comment.txt.tmpl14
2 files changed, 28 insertions, 20 deletions
diff --git a/template/en/default/bug/create/comment-guided.txt.tmpl b/template/en/default/bug/create/comment-guided.txt.tmpl
index 19d17a467..2d2182681 100644
--- a/template/en/default/bug/create/comment-guided.txt.tmpl
+++ b/template/en/default/bug/create/comment-guided.txt.tmpl
@@ -19,33 +19,37 @@
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
[%# INTERFACE:
- # form: hash. This is the $::FORM variable from a bug submission (i.e. the
- # 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.
+ # This template has no interface.
+ #
+ # 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 %]
-User-Agent: [%+ Bugzilla.cgi.user_agent() %]
-Build Identifier: [%+ form.buildid %]
+[% cgi = Bugzilla.cgi %]
+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..." -%]
-Reproducible: [%+ form.reproducible %]
+[%+ IF cgi.param("reproducible") != "Choose one..." -%]
+Reproducible: [%+ cgi.param("reproducible") %]
[% 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:
-[%+ form.reproduce_steps %]
+[%+ cgi.param("reproduce_steps") %]
[% END %]
-[% IF form.actual_results -%]
+[% IF cgi.param("actual_results") -%]
Actual Results:
-[%+ form.actual_results %]
+[%+ cgi.param("actual_results") %]
[% END %]
-[% IF form.expected_results %]
+[% IF cgi.param("expected_results") %]
Expected Results:
-[%+ form.expected_results %]
+[%+ cgi.param("expected_results") %]
[% END %]
-[%+ form.additional_info %]
+[%+ cgi.param("additional_info") %]
diff --git a/template/en/default/bug/create/comment.txt.tmpl b/template/en/default/bug/create/comment.txt.tmpl
index 595ad3a80..c9f40426e 100644
--- a/template/en/default/bug/create/comment.txt.tmpl
+++ b/template/en/default/bug/create/comment.txt.tmpl
@@ -19,8 +19,12 @@
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
[%# INTERFACE:
- # form: hash. This is the $::FORM variable from a bug submission (i.e. the
- # 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.comment %]
+ # This template has no interface.
+ #
+ # 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 %]
+[% Bugzilla.cgi.param("comment") %]