[MAGNOLIA-5236] Optional area not added on author instance renders on public instance Created: 14/Aug/13  Updated: 25/Oct/13  Resolved: 16/Oct/13

Status: Closed
Project: Magnolia
Component/s: templating
Affects Version/s: 5.0.2
Fix Version/s: 5.1.1

Type: Bug Priority: Major
Reporter: Kaushal Parikh Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: framework
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Author & Public both on same tomcat


Issue Links:
Cloners
clones MAGNOLIA-5227 Optional area not added on author ins... Closed
causality
relation
is related to MAGNOLIA-5242 cmsfn.isEditMode() is true when acces... Closed
is related to MGNLUI-1902 cmsfn.isPreviewMode() is always false Closed
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
Testcase included:
Yes
Sprint: 5.1.1

 Description   

We are having one area that is configured as
optional = true
floating = true
type = list

the area has following structure in templateScript with jsp renderer.

<div class='outer'>
<div class-'inner'>
<c:forEach items="${components}" var="component">
<cms:component content="${component}" />
</c:forEach>
</div>
</div>

we have NOT added that area using '+' button in edit mode, but still it generates following structure in public mode when activated.

<div class='outer'>
<div class-'inner'>
</div>
</div>


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