Most entities provide the unchanged entity along with the updated entity rules event. It is useful to have it for use in conditions to compare if for example there are field changes, etc.

I'll upload a patch to provide it. Should be simple.

Comments

acrazyanimal’s picture

Status: Active » Needs review
StatusFileSize
new1.32 KB

Here it is ...

steveoliver’s picture

Title: Add unchanged relation to update rules event [PATCH] » Add unchanged relation to relation_update Rules event
Status: Needs review » Closed (fixed)

Good call. Thanks. Committed to 348de36. See related #1807804: Add descriptions to Rules relation variables.

acrazyanimal’s picture

Thanks for committing. You missed crediting me with the authorship in your commit by the way. :(

steveoliver’s picture

Oh, you're right -- I missed the ' --author="jpayne "'. Sorry, man. Next time :)

acrazyanimal’s picture

For the future you can use the command git am < patchname.patch to automatically pull the author info in for patches that have been made using git format-patch as it was in this case. Makes it easier if you intend on committing a patch without changing it. :) Thanks for acknowledging the mistake.

http://drupal.org/node/1146430

halth’s picture

Thank you @acrazyanimal for the patch!
Just what I needed!

Excellent!