{section} change between 2.3.1 and 2.5.0 ?

From: Date: Tue, 26 Aug 2003 12:15:37 +0000
Subject: {section} change between 2.3.1 and 2.5.0 ?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10125@lists.php.net to get a copy of this message
Hi My nested sections have a different behaviour in 2.3.1 and 2.5.0. I didn't find any information in the changelog. I have the 2 following arrays : $arrDossier ----------- array ( [strDossier] => Test [datCreation] => 2003-08-24 16:32:08 [arrServices] => Array ( [0] => Array ( [datReception] => 2003-08-20 [datDepart] => 2003-08-24 [intServiceId] => 1 ) [1] => Array ( [datReception] => 2003-08-24 [datDepart] => 2003-08-24 [intServiceId] => 3 ) ) ) and $arrServices ------------ array ( [0] => Array ( [intServiceId] => 1 [strServiceCourt] => Maison ) [1] => Array ( [intServiceId] => 2 [strServiceCourt] => DDAF ) [2] => Array ( [intServiceId] => 3 [strServiceCourt] => Test ) ) These 2 variables are assigned in the PHP script. Basically, I step through $arrServices and I want to check a checkbox if $arrServices[i]["intServiceId"] is found in $arrDossier["arrServices"][j]["intServiceId"] {*smarty*} {section name=i loop=$arrServices} <input type="checkbox" value="{$arrServices[i].intServiceId}" {section name=j loop=$arrDossier["arrServices"]} {if $arrDossier.arrServices[j].intServiceId == $arrServices[i].intServiceId} checked="checked" {/if} {/section} /> {/section} This works fine with smarty 2.3.1 but fails with 2.5.0 (the main loop seems to run only once). What am I missing ? Thanks in advance Michael

« previous php.smarty.general (#10125) next »