Closed
Bug 305675
Opened 19 years ago
Closed 19 years ago
Problem calling form data from within comment.txt.tmpl
Categories
(Bugzilla :: Creating/Changing Bugs, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: rex.white, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
For some reason, I'm having trouble calling form data from within
"comment.txt.tmpl". In "create.html.tmpl", I added a drop-down menu
with the values "Yes" and "No" and named the menu "checkpriv".
<select name="checkpriv">
<option value="Yes">Yes</option>
<option selected value="No">No</option>
</select>
Then, in "comment.txt.tmpl" I added the line:
Privacy Option: [% form.checkpriv %]
After asking around, somebody suggested I try:
[% cgi.param("checkpriv") %]
Either way, when I report the bug, I can see "Privacy Option:" but, following
that, there is only white space.
Reproducible: Always
Steps to Reproduce:
1. Add code to create.html.tmpl and comment.txt.tmpl
2. Submit bug report
3.
Actual Results:
Appends contents of comment.txt.tmpl to bug report, but, where the form data
should be, there is only white space.
Expected Results:
Insert form data
Comment 1•19 years ago
|
||
This is not the right place to get support, see: http://www.bugzilla.org/support/ The .cgi script should save this information in $vars->{'checkpriv'}, assuming $vars is passed to comment.txt.tmpl. comment.txt.tmpl can then access it using [% checkpriv FILTER html %]
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•