[MAGNOLIA-3208] includeTemplate: should reset collection name Created: 20/May/10  Updated: 23/Jan/13  Resolved: 20/May/10

Status: Closed
Project: Magnolia
Component/s: taglibs
Affects Version/s: 4.3.1
Fix Version/s: 4.3.2

Type: Bug Priority: Major
Reporter: Philipp Bärfuss Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

The iterator tag sets the collection name which is used by the edit tag. This is not an issue as long only iterator tags are used. The problem starts when other iterating mechanism are used like the [#list] tags in freemarker. The collection name is not reset and is still present in the paragraphs and subparagraphs.

The simplest solution is to change the includeTemplate tag such that it resets the collection name and sets the original value after the rendering.


Generated at Mon Feb 12 03:44:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.