[MGNLSTK-1005] HorizontalTabbedArea fails when rendered in edit mode without any internal components Created: 01/Oct/12  Updated: 28/Nov/12  Resolved: 28/Nov/12

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: paragraphs
Affects Version/s: 2.0.4
Fix Version/s: 2.0.7

Type: Bug Priority: Neutral
Reporter: Jan Haderka Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MGNLSTK-992 Freemarker error when creating a Teas... Closed
causality
caused by MGNLSTK-954 HTML generated by the component "teas... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

After declaring new horizontal tabbed area following exception is rendered in edit mode as long as no components are assigned to the area:

Expression classOn is undefined on line 30, column 18 in templating-kit/components/teasers/horizontalTabbedArea.ftl.
The problematic instruction:
----------
==> ${classOn} [on line 30, column 16 in templating-kit/components/teasers/horizontalTabbedArea.ftl]

The variable classOn should be initialised at the top of the template like:

[#assign classOn = ""]


 Comments   
Comment by Milan Divilek [ 28/Nov/12 ]

It was already fixed on master branch in this commit http://git.magnolia-cms.com/gitweb/?p=modules/standard-templating-kit.git;a=commit;h=65baa86a531086c5286a2de116232b13393e926b

Generated at Mon Feb 12 07:32:28 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.