Hi,

I created a Rule on After Updating Existing Node with an action to create a message. I use @{message:field-message-node:title} and @{message:field-message-node:body} , it always gave me the Previous Title and Previous Body though I assigned updated node to field-message-node.

Also, @{message:field-message-node:original:body}, @{message:field-message-node:original:title}, [message:field-message-node:original:body], [message:field-message-node:original:title] were never parsed.

Comments

paulwdru’s picture

Title: Always gave Previous values on updating node rule event » Tokens gave Previous values on updating node rule event
geek-merlin’s picture

This is an issue of node_save(), it clears the entity cache only after the hooks. Copy the code from there and clear the entity cache in your hook. Worked for me.

joelpittet’s picture

Status: Active » Fixed

Seems answered, closing as fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.