mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-16 15:33:02 +01:00
- Templates LSformElement* : Problème possible revelé sur
LSformElement_select_object : Les valeurs des foreach key et item ne sont pas réécrite lors d'un {foreachelse} et du coup les valeurs d'un élément au dessus sont utilisées.
This commit is contained in:
parent
854ac3d867
commit
03c6892e0f
3 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
{foreach from=$values item=value}
|
{foreach from=$values item=value}
|
||||||
<li>{include file=$fieldTemplate}</li>
|
<li>{include file=$fieldTemplate}</li>
|
||||||
{foreachelse}
|
{foreachelse}
|
||||||
|
{assign var=value value=""}
|
||||||
<li>{include file=$fieldTemplate}</li>
|
<li>{include file=$fieldTemplate}</li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
{foreach from=$values item=value}
|
{foreach from=$values item=value}
|
||||||
<li{if !$freeze} class='LSformElement_boolean'{/if}>{include file=$fieldTemplate}</li>
|
<li{if !$freeze} class='LSformElement_boolean'{/if}>{include file=$fieldTemplate}</li>
|
||||||
{foreachelse}
|
{foreachelse}
|
||||||
|
{assign var=value value=""}
|
||||||
<li{if !$freeze} class='LSformElement_boolean'{/if}>{include file=$fieldTemplate}</li>
|
<li{if !$freeze} class='LSformElement_boolean'{/if}>{include file=$fieldTemplate}</li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
{foreach from=$values item=txt key=dn}
|
{foreach from=$values item=txt key=dn}
|
||||||
<li>{include file=$fieldTemplate}</li>
|
<li>{include file=$fieldTemplate}</li>
|
||||||
{foreachelse}
|
{foreachelse}
|
||||||
|
{assign var=dn value=""}
|
||||||
|
{assign var=txt value=""}
|
||||||
<li>{include file=$fieldTemplate}</li>
|
<li>{include file=$fieldTemplate}</li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue