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

GetCommonMetadataAction fails to detect property which is not a repeater

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.4
    • 4.2.2
    • None
    • None
    • 4.3 M2

      In my case, I have a repeater named "my-property", containing several properties.

      And another property (not in the repeater) called "my-property-something"

      When I try to set-up a search service, this property is not available because GetCommonMetadataAction think it is a repeater.

       

      The problem is in

      org.ametys.cms.contenttype.GetCommonMetadataAction._getRepeaterChildrenNames(Map<String, MetadataDefinition>)
      

      The property is considered as a repeater if

      StringUtils.startsWithAny(metadataPath, repeaterPaths)

      (which is the case with the name of those properties)

            pgros Pierre Gros (Inactive)
            pgros Pierre Gros (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: