Affects Version/s: 7.0.0 DXP SP2, Master
When copying a Web Content article that has been approved through the workflow, it is copied with Approved status and bypasses the approval process.
When we copy a Web Content article that is subject to the workflow process and has not yet been approved, it is in the Pending status. However, when we copy it, it is copied with Draft status.
Steps to reproduce
- Start DXP + FP11
- Sign In with email@example.com
- Go into Liferay DXP site > Content > Web Content
- In the Web Content panel, click on to open info sidebar > click on ⋮ > Edit
- Select Single Approver (Version 1) to Default Workflow for All Structures, and Save it
- Add a new user User1
- Add the user to Site Memberships of Liferay DXP site, and assign "Site Owner" site role to it
- In a separate browser sign in with User1
- As User1, go into Web Content panel of Liferay DXP site
- Click on the button to Add a Basic Web Content > create an article called EXAMPLE, and click Submit for Publication
> Note that the web content article EXAMPLE is created with Pending status
- In the browser where we are signed in with firstname.lastname@example.org, approve the EXAMPLE article created by User1
- In the browser where we are signed in with User1 go into Liferay DXP site > Content > Web Content
- Locate the EXAMPLE article, then click on the hamburger menu next to it (⋮), then Copy the web content
The content is copied as Approved content. Looks like bypass the approval process.
The content should be copied as Draft or Pending status because it need to through the approval process. The copied content should enter a workflow administrator's task queue as a new article.
DXP + FP11
LPS-35186 and it fixes the issue for 6.1.x but does not fix dxp. So I'm creating this LPP for DXP.