Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
None
Description
This is a regression caused by http://issues.ez.no/IssueView.php?Id=12023
The fix for the above issue introduced unique names for the $skipDelimiter variable used inside loops in compiled mode.
The problem is that the code generated by a
{skip} statement has not been updated to use the new variable names. This is the case for the handling of {skip}as a direct child of a loop (eztemplatecompiledloop.php:178) and
{skip} as a child of an if-statement (eztemplateiffunction.php:149).If there are other places that handle a {skip}
, they're probably affected as well.
=> tested on v4.0
Steps to reproduce
{foreach array(1,2,3,4,5) as $i} {if mod($i,2)|eq(0)} {skip} {/if}{$i}
{delimiter}—
{/delimiter} {/foreach}Attachments
Issue Links
- relates to
-
EZP-12023 Delimiter is never executed when using nested loops and template compilation is enabled
- Closed