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

Rework DefaultContentType._computePropertiesReferences(ModelItemContainer)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.0
    • 4.8.0
    • None
    • None
    • 4.8.0 M8

      org.ametys.cms.contenttype.DefaultContentType._computePropertiesReferences(ModelItemContainer) method controls validity of ElementRefProperty only.

      It checks the item path and add properties references to compute indexing references (only used to alert the user when saving a content with external properties).

      But on properties, we should do this on all properties without knowing their instancied class. We can check it with two methods:

      • boolean isValid(ContentType)
      • Map<String, List<String>> or List<String> getReferences()

            cbayle Caroline Bayle
            bmaurel Bérénice Maurel
            Caroline Bayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: