Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9416

common-metadata.json does not return a MetadataDefinition if another one in a repeater has the same name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 4.8.0
    • 4.2.0
    • None
    • None

      In GetCommonMetadataAction, in line 226 we do:

      passesCondition = !subRepeaterMetadataNames.contains(metadataDefinition.getName());

      Yet, I have the following metadataset:

      <cms:metadata-ref name="linkDev" />
      <cms:metadata-ref name="rep">
          <cms:metadata-ref name="linkDev" />
      </cms:metadata-ref>
      

      So it does not pass condition (subRepeaterMetadataNames contains 'linkDev', but it is not the same metadata definition), whereas it must.

            Unassigned Unassigned
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: