Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-13158

[regression] {skip} is broken

    XMLWordPrintable

Details

    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

        Activity

          People

            cyberwolf cyberwolf
            hmelis hmelis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: