Issue
-
Draft of a form changes the workflow definition
-
Steps to reproduce:
- Navigate to Content & Data > Forms
- Click to add a new form
- Add a text field to the form
- Go to its settings and change the workflow from 'No Workflow' to 'Single Approver'
- Publish the form;
- Enter the given URL and submit an entry for publication.
- Go to the form's entries page and check that your entry is pending.
- Go back to edit the form.
- Change its workflow setting to 'No Workflow' now
- Add another field to the form, but don't save it. Wait for the autosave to kick in (a message can be noticed on the header of the page with the time when the draft was saved)
- Now, enter the form's URL again to fill in another entry
- First, check that there's only one text field as expected
- Submit another entry;
- Finally, go back to see the form's entries.
Expected Behavior: There should be two entries with pending status.
Observed Behavior: The first entry is pending and the last one is approved due to the fact that the autosave feature changed the workflow of the form without the user telling the app to explicitly publish that change.
Environment
- Liferay DXP 7.1
- Liferay DXP 7.2
- Liferay DXP 7.3
- Liferay DXP 7.4
Resolution
- The observed behavior is considered a DXP bug that has been addressed by LPS-124588
Additional Information
- If a hotfix is required, please create a support ticket requesting the hotfix by attaching the patch details.
- Installing Fix Packs and Hotfixes on Liferay DXP will guide you to install the Fixpack/Hotfix in your environment.