You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've been using Smarty for a while and today, even while we are using v3, we still have some templates that "mix" foreach loops with the "old" syntax from Smarty 2, like following:
At least until 3.1.24 (the version from where we are updating now) we could use both syntax, but with 3.1.32, if we use the "name" property on foreach, using @iteration from inside the loop launches an undefined property error.
If we remove the "name" property on the foreach or use the syntax {foreach $product.attributes.grapes.values as $grape}, iteration has its value correctly.
Thanks for your help!
The text was updated successfully, but these errors were encountered:
We've been using Smarty for a while and today, even while we are using v3, we still have some templates that "mix" foreach loops with the "old" syntax from Smarty 2, like following:
At least until 3.1.24 (the version from where we are updating now) we could use both syntax, but with 3.1.32, if we use the "name" property on foreach, using
@iteration
from inside the loop launches an undefined property error.If we remove the "name" property on the foreach or use the syntax
{foreach $product.attributes.grapes.values as $grape}
, iteration has its value correctly.Thanks for your help!
The text was updated successfully, but these errors were encountered: