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

[Content copy] A created content by copy does not have "creation by copy" in its history

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.9
    • None
    • None
    • None

        [CMS-5133] [Content copy] A created content by copy does not have "creation by copy" in its history

        A simple workaround might be to set an ametys internal property on the content or on the first history step that stores the initial action id of the worklow.

        Thibaut Rizzi (Inactive) added a comment - A simple workaround might be to set an ametys internal property on the content or on the first history step that stores the initial action id of the worklow.

        The issue is that the very first step appears to not be stored in JCR.
        See the org.ametys.cms.workflow.HistoryGenerator line 237 where a simple step object is created on the fly to simulate the first step. When this step is created, the actionId is set to 0 as no info is available. When SAXing, if actionId is 0, the action label take by default the i18n key WORKFLOW_ACTION_CREATE of the plugin CMS. This is the cause of the issue.

        Thibaut Rizzi (Inactive) added a comment - The issue is that the very first step appears to not be stored in JCR. See the org.ametys.cms.workflow.HistoryGenerator line 237 where a simple step object is created on the fly to simulate the first step. When this step is created, the actionId is set to 0 as no info is available. When SAXing, if actionId is 0, the action label take by default the i18n key WORKFLOW_ACTION_CREATE of the plugin CMS. This is the cause of the issue.

          trizzi Thibaut Rizzi (Inactive)
          laurence Laurence Aumeunier
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated:
            Resolved: