Closed (fixed)
Project:
Workflow
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 May 2009 at 14:01 UTC
Updated:
2 Mar 2010 at 18:34 UTC
I am not sure if this issue is for the workflow trigger or revisioning module.
The revisioning module has the trigger "When publishing a pending revision". If I add the workflow trigger to change the workflow state it fails.
Digging through the code it looks like a user object is being passed as the $node object in the trigger.
Upon running the trigger I get an entry in the workflow_node table:
nid: 0
sid: 4
uid: 1
stamp: 1241790656
Everything looks fine but since the $node object is populated with user data instead of the node data $node->nid returns false and enters 0 in the table as shown above.
Comments
Comment #1
easp commentedWrote a patch for the revisioning module to fix the problem.
See issue #457572: Revisioning's triggers will not change workflow's workflow state
Comment #2
jvandyk commented