Many objects that are used in freemarker may be globally available, such as the themeDisplay, however currently, fragments do not consider them valid freemarker even though they get processed correctly. A widget created from freemarker has the exact same interaction, so this is also part of the bug
Steps to Reproduce
- Create a fragment with the following HTML.
- The fragment should render the freemarker correctly, check bottom right
- Publish fragment
Fragment is publishable, since the fragment contains valid freemarker
Fragment is told it has invalid freemarker, since the themeDisplay object doesnt exist, however it does exist in the preview. Usually the preview notifies the user that the syntax is invalid, so there must be a mismatch of objects between the publish verify and the preview verify.
Tested on Tomcat 9.0.17 + MySQL 5.7
Portal master GIT ID: d1702d027a7cc764adf88355a8ba1d4539587a73