Publishing Article containing Custom Tag inside Intro field results in broken Custom Tag and error when only required fields are set. Putting a value in all fields (Title, Short Title, Intro, Body) and publishing will not produce this error.
Steps to reproduce
1. Clean installation of eZ Platform 2.4
2. Add testct custom tag to ezplatform.yml:
and enable it for RichText:
And create AppBundle:custom_tag:test.html.twig template file containing:
3. Create a new Article. Fill Short title, click inside Intro field, click button and add testct custom tag with value: Test 1. Leave other non-required fields blank. Do not click anywhere else.
4. Publish Article
Accessing View tab for said Article in BO will show a message
RichText template tag customtag is not configured
inside Intro field. In addition, during an edition of said Article Intro field will display orange line in a place where Custom Tag should render.
If Body field has set any value, the issue will not occur. Also, there are other scenarios leading to this issue, but this one allows to reproduce it with 100% accuracy on a clean installation.