Closed (fixed)
Project:
Workflow
Version:
5.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2007 at 11:53 UTC
Updated:
30 Apr 2008 at 22:42 UTC
Jump to comment: Most recent file
Comments
Comment #1
aaron commentedI have the same issue. Seems to be a bug, so I'm marking this issue such. Meanwhile, I'm having to edit the database manually to correct.
Comment #2
aaron commentedIn addition, if you add a workflow to a node type, any existing nodes will also be orphaned. Makes it fairly difficult to integrate the module into an existing site.
Comment #3
z.stolar commentedSame here.
I'm looking for a clean way to apply states to existing nodes of a certain type.
I guess the way to do it (thinking outloud) is to go over the node table, choosing all that type's nodes, and insert them to workflow_node table as the first available state for that type (the one that comes right after creation).
Comment #4
JacobSingh commentedHi Aaron, I don't see this problem. The original bug seems valid, but I added a workflow to an existing node type with dozens of nodes, and it works out of the box as far as I can tell.
Comment #5
z.stolar commentedJacobSingh: When you add the workflow, does it's default state applies automatically to all existing nodes? e.g., when you go to the workflow tab of an already existing node - do you see a valid current state?
Comment #6
JacobSingh commentedOkay, here is a patch which should resolve this.
I've added a field to the delete confirmation page which allows the user to select a new SID to assign the nodes to. We also zap all history that used the old sid.
Comment #7
JacobSingh commentedHey everyone who commented on this. Please review the patch! I want to put this into a long overdue release, but I really need your help.
Best,
J
Comment #8
jvandyk commentedApplied code based on patch in #6. Workflow now has state reassignment as part of state deletion if orphaned nodes will result.
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.