Permalink
Browse files

Fixed template logic: only if the error is defined may we concatenate…

… with a single space.
  • Loading branch information...
malthe committed Aug 14, 2011
1 parent 8df076e commit 7465723d001c58db100a35727e01ae3734911a48
Showing with 2 additions and 1 deletion.
  1. +2 −1 deform/templates/mapping_item.pt
@@ -1,7 +1,8 @@
-<li class="field ${field.widget.css_name}${field.error and ' ' + field.widget.error_class}"
+<li class="field ${field.widget.css_name}${error and ' ' + error}"
title="${field.description}"
id="item-${field.oid}"
tal:omit-tag="field.widget.hidden"
+ tal:define="error field.error and field.widget.error_class"
i18n:domain="deform">
<!-- mapping_item -->
<label tal:condition="not (field.widget.hidden or

0 comments on commit 7465723

Please sign in to comment.