-
Notifications
You must be signed in to change notification settings - Fork 714
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.30) @show property not working after a foreach #267
Comments
I investigated a bit more. Simple arrays iterate and work with the @show property without a problem, but when I try an object within $smarty.session, then @show returns the error I mentioned above. edit While trying to figure out the change that broke @show for me, I went back to 3.1.29 but that was also broken, so that led me to 3.1.28, which apparently is the culprit for me, since 3.1.27 works fine. The change-log for 3.1.28 also shows several changes in the {foreach} loop, maybe something related to them cause my issue. |
Can you provide an example? |
…item variable as the properties might be used outside {foreach} #267
This is fixed in the master branch |
I just tried to upgrade from 3.1.27 to 3.1.30 and every place I use the @show property is broken with the following error:
I then copy/pasted the example shown in the documentation (http://www.smarty.net/docs/en/language.function.foreach.tpl#foreach.property.show) and that worked fine, no error.
I've reverted back to 3.1.27.
The text was updated successfully, but these errors were encountered: