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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | relation-add_unchanged_relation_rules_parameter-1807770-1.patch | 1.32 KB | acrazyanimal |
Comments
Comment #1
acrazyanimal commentedHere it is ...
Comment #2
steveoliver commentedGood call. Thanks. Committed to 348de36. See related #1807804: Add descriptions to Rules relation variables.
Comment #3
acrazyanimal commentedThanks for committing. You missed crediting me with the authorship in your commit by the way. :(
Comment #4
steveoliver commentedOh, you're right -- I missed the ' --author="jpayne "'. Sorry, man. Next time :)
Comment #5
acrazyanimal commentedFor the future you can use the command
git am < patchname.patchto automatically pull the author info in for patches that have been made usinggit format-patchas 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
Comment #6
halthThank you @acrazyanimal for the patch!
Just what I needed!
Excellent!