I'm currently working with workflow.module and writing a custom module to replace the "Save" button with buttons like "Publish" and "Draft".
What i did: Hidden the "Save" button (#access=FALSE), added the publish/draft/... button with own submit handler, changing the form state values. After changing it, calling the original node_form_submit handler..
See one current implementation at:
http://drupalbin.com/12086
It saves... it stores the right values in workflow... But any rule related to workflow.module now does wild things.
Conditions don't seem to get checked correctly while a regular save button hit with activated workflow form is triggering rules and passing condition checks perfectly.
Workflow rules integration is at:
http://drupal.org/node/370111
http://drupal.org/files/issues/workflow_rules.zip
Do you have any idea why condition checks could result in completely wrong results?
Thanks for your help.
Comments
Comment #1
miro_dietikeroops... little mistake:
I didn't use the workflow_rules.zip but much more the #370111 post nr. 11 and 16 patches (workflow.module direct rules integration).
Comment #2
miro_dietikerAnd already found a solutoin for my issue...
It's a value casting issue - in rules integration of workflow.module (patch).
Going to report it in the patch queue for rules integration #370111.
Comment #3
mitchell commentedUpdated component.