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

GetCommonMetadataAction fails to detect property which is not a repeater (4.3+)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.16, 4.9.3, 4.10.0
    • 4.3.0
    • None
    • None

      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)

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

              Created:
              Updated: