Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.1.23 - Foreach in foreach issue #33

Closed
Naki opened this issue May 12, 2015 · 1 comment
Closed

3.1.23 - Foreach in foreach issue #33

Naki opened this issue May 12, 2015 · 1 comment

Comments

@Naki
Copy link

Naki commented May 12, 2015

Example template data:

$data = [
    'rows' => [[], ['children' => ['bug appears here']], []]
];

Example template file:

{foreach $rows as $row}
    {$row@index}, 
    {if !empty($row.children)}
        {foreach $row.children as $children}
            {* anything *}
        {/foreach}
    {/if}
{/foreach}

Output:
0, 1, 1,

Should be:
0, 1, 2,

@uwetews
Copy link
Contributor

uwetews commented May 12, 2015

This is now fixed in dev-master

@uwetews uwetews closed this as completed May 12, 2015
think-mcunanan pushed a commit to think-mcunanan/smarty that referenced this issue Mar 22, 2023
…-the-facilityenabled-flag

Ticket #5167 remove the facilityenabled flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants