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