Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-3826

Non empty composite don't trigger the display of fieldsets

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.6, 4.9.0
    • 4.8.5, 4.9.0
    • Charte ODF
    • 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

            laurence Laurence Aumeunier
            tcorre Thalya Corré
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: