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

easp’s picture

Wrote a patch for the revisioning module to fix the problem.

See issue #457572: Revisioning's triggers will not change workflow's workflow state

jvandyk’s picture

Status: Active » Closed (fixed)