Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-79077

Workflow XML field will strip value from Single Approver <script> tag

    Details

      Description

      Quick Steps to Reproduce:

      1. Go to Control Panel -> Configuration -> Workflow.
      2. Click Single Approver
      3. View <script> tag under "approved" state node

      Expected Result:
      Script tag contains groovy script to approve an asset.

      Actual Result:
      Script tag is emptied by the editor.

      If the user saves an edit to the Single Approver workflow, then assets can no longer be approved.

      Steps to reproduce to see the affects of this bug:

      1. Go to Control Panel -> Configuration -> Workflow.
      2. Click Single Approver.
      3. Inside the code field, Change "Single Approver" to "Single Approver 2" between <name></name>.
      4. Click Update, then click back button.
      5. Click Schemes Tab.
      6. Click Edit near Web Content Article.
      7. Choose Single Approver(Version 2) and click Save button.
      8. Go to Product Menu -> Content -> Web Content.
      9. Create a basic web content, and submit it for publication.
      10. Go to My Account -> My Workflow Task, assign and approve the task.
      11. Go back to Product Menu -> Content -> Web Content.

      Expected result:
      The web content status is Approved.
      Actual result:
      The web content status is Pending and you cannot edit and publish it again.

        Attachments

        1. issue.PNG
          issue.PNG
          36 kB
        2. screenshot-1.png
          screenshot-1.png
          32 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 17 weeks, 1 day ago

                  Packages

                  Version Package
                  7.1.X
                  Master