- Issue created by @johnv
- Status changed to Fixed
11 months ago 1:43pm 11 April 2024 Automatically closed - issue fixed for 2 weeks with no activity.
When deleting a Workflow type, the creation state is not deleted.
- install Configuration Inspector module,
- run report admin/reports/config-inspector, note the quantity of errors.
- Create a Workflow
- re-run report admin/reports/config-inspector, note the quantity of errors.
- Delete the workflow.
- re-run report admin/reports/config-inspector, note the quantity of errors.
- Note that a new line exists for 'workflow.state.MY_TYPE_creation' with '1 error'
The error occurs because of the fact that the Creation state is created implicitely, when a Workflow is loaded.
However, this also happens when a Workflow is already deleted, but the Role is refreshed in the same page call.
The state creation must only be done when a Workflow is saved, not on other moments.
A update hook could be provided, for instances that have this orphan/stray/stale Creation state.
However, the following workaround works too:
- update to latest version. Create a Workflow with the machine name from the Creation state. Then delete the Workflow again.
A new function Workflow::createCreationState() is implemented.
Fixed
1.7
Code
Automatically closed - issue fixed for 2 weeks with no activity.