Commit e801bb62 authored by Amos Latteier's avatar Amos Latteier

Fixed a potential NameError, if the Product has no Product Help. Thanks to Jochen Knuth.

parent 8cfaa7de
...@@ -27,11 +27,13 @@ ...@@ -27,11 +27,13 @@
<td align="left" valign="center"> <td align="left" valign="center">
<select name="helps:list"> <select name="helps:list">
<option></option> <option></option>
<dtml-in "Help.helpValues()"> <dtml-if "_.getitem('Help')">
<dtml-in "Help.helpValues()">
<option <option
<dtml-if "_.has_key('help') and _.getitem('sequence-item').id() == help[1]">SELECTED <dtml-if "_.has_key('help') and _.getitem('sequence-item').id() == help[1]">SELECTED
</dtml-if>><dtml-var id></option> </dtml-if>><dtml-var id></option>
</dtml-in> </dtml-in>
</dtml-if>
</select> </select>
</td> </td>
</tr> </tr>
...@@ -60,9 +62,11 @@ ...@@ -60,9 +62,11 @@
<td align="left" valign="top"> <td align="left" valign="top">
<select name="help"> <select name="help">
<option></option> <option></option>
<dtml-if "_.getitem('Help')">
<dtml-in "Help.helpValues()"> <dtml-in "Help.helpValues()">
<option><dtml-var id></option> <option><dtml-var id></option>
</dtml-in> </dtml-in>
</dtml-if>
</select> </select>
</td> </td>
</tr> </tr>
......
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