-
Bug
-
Resolution: Fixed
-
Major
-
4.8.5, 4.9.0
-
None
-
4.9.0 M5
When the only filled attribute in a fieldset is a composite, the fieldset is not displayed.
Steps to reproduce / example :
- Add an attribute of type composite to a content type
<cms:metadata name="testComposite" type="composite"> <label i18n="false">testComposite</label> <description i18n="false">testComposite</description> <cms:metadata name="compositeString" type="string"> <label i18n="false">test String</label> <description i18n="false">test String</description> </cms:metadata> </cms:metadata>
- Add another attribute to the content type
<cms:metadata name="stringTest" type="string"> <label i18n="false">test String</label> <description i18n="false">test String</description> </cms:metadata>
- Add them to the main view in a fieldset
<cms:fieldset> <cms:label>Fieldset</cms:label> <cms:metadata-ref name="stringTest"/> <cms:metadata-ref name="testComposite"> <cms:metadata-ref name="compositeString"/> </cms:metadata-ref> </cms:fieldset>
- Open Ametys and in CMS add a value to the attribute "compositeString" of the content and save
- The fieldset is not displayed
- Add a value to the "stringTest" attribute
- The fieldset is now displayed