From 03c6892e0ffeea68a5bb5de3cdc9bb50000f697b Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 24 Nov 2008 10:59:36 +0000 Subject: [PATCH] =?UTF-8?q?-=20Templates=20LSformElement*=20:=20Probl?= =?UTF-8?q?=C3=A8me=20possible=20revel=C3=A9=20sur=20=20=20LSformElement?= =?UTF-8?q?=5Fselect=5Fobject=20:=20Les=20valeurs=20des=20foreach=20key=20?= =?UTF-8?q?et=20item=20ne=20sont=20pas=20=09r=C3=A9=C3=A9crite=20lors=20d'?= =?UTF-8?q?un=20{foreachelse}=20et=20du=20coup=20les=20valeurs=20d'un=20?= =?UTF-8?q?=C3=A9l=C3=A9ment=20au=20dessus=20=09sont=20utilis=C3=A9es.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/templates/default/LSformElement.tpl | 1 + trunk/templates/default/LSformElement_boolean.tpl | 1 + trunk/templates/default/LSformElement_select_object.tpl | 2 ++ 3 files changed, 4 insertions(+) diff --git a/trunk/templates/default/LSformElement.tpl b/trunk/templates/default/LSformElement.tpl index ddabefbd..ceaef1d1 100644 --- a/trunk/templates/default/LSformElement.tpl +++ b/trunk/templates/default/LSformElement.tpl @@ -2,6 +2,7 @@ {foreach from=$values item=value}
  • {include file=$fieldTemplate}
  • {foreachelse} + {assign var=value value=""}
  • {include file=$fieldTemplate}
  • {/foreach} diff --git a/trunk/templates/default/LSformElement_boolean.tpl b/trunk/templates/default/LSformElement_boolean.tpl index c48bd505..ee4b2a8a 100644 --- a/trunk/templates/default/LSformElement_boolean.tpl +++ b/trunk/templates/default/LSformElement_boolean.tpl @@ -2,6 +2,7 @@ {foreach from=$values item=value} {include file=$fieldTemplate} {foreachelse} + {assign var=value value=""} {include file=$fieldTemplate} {/foreach} diff --git a/trunk/templates/default/LSformElement_select_object.tpl b/trunk/templates/default/LSformElement_select_object.tpl index 64ecff2f..9066fdfb 100644 --- a/trunk/templates/default/LSformElement_select_object.tpl +++ b/trunk/templates/default/LSformElement_select_object.tpl @@ -7,6 +7,8 @@ {foreach from=$values item=txt key=dn}
  • {include file=$fieldTemplate}
  • {foreachelse} + {assign var=dn value=""} + {assign var=txt value=""}
  • {include file=$fieldTemplate}
  • {/foreach}