-
Improvement
-
Resolution: Fixed
-
Major
-
2.0, 2.0.1, 2.0.2
-
None
-
-
Yes
-
Empty show more show less
Disabling the extras area is the most common use case on templates, besides reconfigure it.
When disabling the extras area by adding the property enabled=false, a class cast exception happens in the BodyClassResolver.
Without the definition of the specific bean by the class property, the code does not work.
But it is really really hard for people to find out why they get the freemarker error without the class property, and then to find out what class to use.
The new code uses first a default AreaDefintion for checking the .isEnabled() value, and then casts within the if.
Acceptance criteria
- supersedes
-
MGNLSTK-942 stkNews template renders Freemarker error when disabling extras area
- Closed