Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
paulwdru CreditAttribution: paulwdru commentedComment #2
geek-merlinThis 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.
Comment #3
joelpittetSeems answered, closing as fixed.