Hi, if I setup a rule to react on node update - then this rule is fired twice when workbench moderation is activated.
I already tried to add a condition on the current state set to draft - but this does not help.
Any reason why this happens? Any idea on how to set a condition that ONLY the draft is used in rules?
Even if I use the conditon "Content's current moderation state" set to draft the rule is fired twice.
If I sent out the body of the content, one email contains the body of the current draft and one of the live version ...

Comments

vistree created an issue.

jlovato’s picture

I have a similar issue. I have rules setup to automatically set the path of content based on tokens when it is saved/updated. When a Workbench Moderation transition transpires, duplicate transitions occur. If I turn the rule off only one occurs as expected.

It looks like Workbench Moderation makes a call to hook_node_update. This may be causing two calls to update the node separately instead of at the same time. Attempting to revert any changes can be tricky at times but this isn't effecting our workflow so I am moving on from my investigation at this time.