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

kepford’s picture

I have noticed this as well. Will manually deleting these rows in the database case problems?

jgraham’s picture

Over time there *could* be some conflicts if keys get re-used.

kepford’s picture

Thanks.

jvandyk’s picture

Status: Active » Closed (works as designed)

When a state is deleted, its status is set to 0 in the table.

candelas’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Priority: Normal » Minor
Status: Closed (works as designed) » Active

first 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 :)

Bastlynn’s picture

Status: Active » Closed (duplicate)

This 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).