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

Remove useless code related to subContent from CreateContentFunction

    • 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.

          [CMS-10881] Remove useless code related to subContent from CreateContentFunction

          Kepa Bourgoin made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Bérénice Maurel made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Ready to merge [ 10208 ] New: Resolved [ 5 ]
          Laurence Aumeunier made changes -
          Assignee New: Bérénice Maurel [ bmaurel ]
          Laurence Aumeunier made changes -
          Status Original: Functional review OK [ 10207 ] New: Ready to merge [ 10208 ]
          Magali Franchet made changes -
          Status Original: Available for review [ 10005 ] New: Functional review OK [ 10207 ]
          Bérénice Maurel made changes -
          Status Original: Open [ 1 ] New: Available for review [ 10005 ]
          Bérénice Maurel made changes -
          Sprint New: 4.8.0 M6 [ 91 ]
          Bérénice Maurel made changes -
          Développeur New: Bérénice Maurel [ bmaurel ]
          Bérénice Maurel made changes -
          Link New: This issue Conditionne CMS-11813 [ CMS-11813 ]
          Laurence Aumeunier made changes -
          Fix Version/s New: 4.8.0 [ 17990 ]
          Fix Version/s Original: 4.7.0 [ 17704 ]

            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: