Nesting list tags breaks the name_index
Bug #523899 reported by
Ben Rometsch
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
play framework | Status tracked in 1.0 | |||||
1.0 |
Fix Released
|
Medium
|
Guillaume Bort | |||
1.1 |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
If you have two nested lists, e.g.:
#{list list1, as:'list1'}
${name_index}
#{list list2, as:'list2'}
${name_index}
#{/list}
#{/list}
It appears that the name_index context is not specific to the nested list, and so it is incremented in both the outer and inner list.
Changed in play: | |
importance: | Undecided → Medium |
To post a comment you must log in.
What is ${name_index} ? It should be ${list1_index} and ${list2_index}
On Thu, Feb 18, 2010 at 4:55 PM, Ben Rometsch <email address hidden> wrote: /bugs.launchpad .net/bugs/ 523899
> Public bug reported:
>
> If you have two nested lists, e.g.:
>
> #{list list1, as:'list1'}
> ${name_index}
>
> #{list list2, as:'list2'}
> ${name_index}
> #{/list}
> #{/list}
>
> It appears that the name_index context is not specific to the nested
> list, and so it is incremented in both the outer and inner list.
>
> ** Affects: play
> Importance: Undecided
> Status: New
>
> --
> Nesting list tags breaks the name_index
> https:/
> You received this bug notification because you are subscribed to play
> framework.
>