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

Remove useless code related to subContent from CreateContentFunction

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.0
    • None
    • None
    • None
    • 4.8.0 M6

      Even if subContent concept is no longer used, there is still code related to it in the createContentFunction.

      PARENT_CONTENT_ID_KEY and PARENT_CONTENT_METADATA_PATH_KEY should be removed, the property "ametys-internal:subContent" sould no longer be set, and the _getSubContentRoot function should be removed. 

      The ContentWorkflowHelper should also be modified : 

      _getCommonInputsForCreation should no longer put PARENT_CONTENT_ID_KEY and PARENT_CONTENT_METADATA_PATH_KEY values, and createContent functions should no longer take parentContentId and parentContentMetadatapath as parameters.

      Two createContent functions should be removed, and each call to the modified/deleted createContent functions should be modified.

            bmaurel Bérénice Maurel
            kbourgoin Kepa Bourgoin
            Bérénice Maurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: