Open GoogleCodeExporter opened 9 years ago
{foreach} does always initialize $_smarty_tpl->tpl_vars[$item]->_loop.
The only case I can think of is when you assign a new value to the loop
variable within the foreach loop.
Did you do that?
Original comment by Uwe.Tews@googlemail.com
on 16 Oct 2014 at 6:15
... I am - that very well could be the issue then
Original comment by Scootin...@gmail.com
on 16 Oct 2014 at 6:27
Yes that is the problem.
Assigning a new value within the loop would break also the usage of other
special properties like $item@iteration etc.
So you patch will not resolve the general problem.
So I would update the documentation that the $item variable must not be
overwritten within the loop as there is no easy fix in the code.
Original comment by Uwe.Tews@googlemail.com
on 16 Oct 2014 at 6:39
Original issue reported on code.google.com by
Scootin...@gmail.com
on 16 Oct 2014 at 3:31Attachments: