We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The total property of {section} and {foreach} returns different results than v3.1.27.
{section} - Since v3.1.29, this behavior has changed {foreach} of Smarty 2.x syntax - Since v3.1.28, this behavior has changed
{section}
{assign var=samplearr value=[["list" => []],["list" => ["item"]]]} {foreach $samplearr as $v} {section name=inner loop=$v.list} {/section} loop: {$v@iteration} inner: {$smarty.section.inner.total} {/foreach}
{foreach} of Smarty 2.x syntax
loop: 1 inner: 0 loop: 2 inner: 0
loop: 1 inner: 0 loop: 2 inner: 1
The text was updated successfully, but these errors were encountered:
https://github.com/smarty-php/smarty/issues/422
711af1c
- bugfix {$smarty.section...} used outside {section}{/section} showed…
b7e7def
… incorrect values if {section}{/section} was called inside another loop #422
The fix for this problem is now in the master branch and will later be included in the 3.1.32 release
Sorry, something went wrong.
dfdf343
No branches or pull requests
The total property of {section} and {foreach} returns different results than v3.1.27.
{section} - Since v3.1.29, this behavior has changed
{foreach} of Smarty 2.x syntax - Since v3.1.28, this behavior has changed
Testcase
{section}
{foreach} of Smarty 2.x syntax
Actual result
Expected result, up to v3.1.27
The text was updated successfully, but these errors were encountered: