LSformElement_valueWithUnit : Fixed display error of form when attribute have no...
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 24 Mar 2011 15:28:04 +0000 (16:28 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 24 Mar 2011 15:28:04 +0000 (16:28 +0100)
public_html/templates/default/LSformElement_valueWithUnit_field.tpl

index dfbcc24..1f739af 100644 (file)
@@ -13,7 +13,7 @@
     {$noValueTxt}
   {/if}
 {else}
-  {if $values_and_units[$value].valueWithUnit}
+  {if $values_and_units[$value].valueWithUnit || !$values_and_units[$value]}
     <input name='{$attr_name}_valueWithUnit[]' type=text class='LSformElement_valueWithUnit' value="{$values_and_units[$value].valueWithUnit}"/>
     <select name='{$attr_name}_unitFact[]' class='LSform LSformElement_valueWithUnit'>
       {html_options options=$units selected=$values_and_units[$value].unitSill}