Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When deleting a workflow the prompt indicates that nodes with the selected workflow will have their workflow states deleted. However after deleting the workflow the entries for that workflow still exist in workflow_states.
We didn't actually test if workflow_node was cleaned up, we only noticed that the entries in workflow_states remain after workflow deletion.
How to reproduce;
1. create a workflow
2. add a state
3. notice new entry in workflow_states
4. delete the workflow
5. notice the associated workflow state(s) are still in workflow_states
Comments
Comment #1
kepford CreditAttribution: kepford commentedI have noticed this as well. Will manually deleting these rows in the database case problems?
Comment #2
jgraham CreditAttribution: jgraham commentedOver time there *could* be some conflicts if keys get re-used.
Comment #3
kepford CreditAttribution: kepford commentedThanks.
Comment #4
jvandyk CreditAttribution: jvandyk commentedWhen a state is deleted, its status is set to 0 in the table.
Comment #5
candelas CreditAttribution: candelas commentedfirst thanks a lot for this module.
i use it in 6.22 and works perfect.
you really work hard on this module!
sorry for my bad english :)
before opening a new issue, i searched in 6.x issues and, in the result 4 pages, i found this one that i think is the place to report, since they are related.
if i do wrong, please tell to me and i open a new one or what you say.
the little bug (i classify as minor) that i found it is that when you delete a state, it is not deleted in the database, in table workflow_states.
thanks thanks for your generous work :)
Comment #6
Bastlynn CreditAttribution: Bastlynn commentedThis is a duplicate of #1347116: States don't get removed when a workflow is deleted - and the question, under 7.x will be handled in that ticket (with the information from this one taken into account).