Posted by fago on July 7, 2011 at 3:10pm
4 followers
| Project: | Rules |
| Version: | 7.x-2.x-dev |
| Component: | Rules Core |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
To avoid any troubles with invoking entity_save() on hook_entity_insert() we have to make sure Rules operates last - else modules' update hooks might be invoked before their insert hooks.
For that Rules has already a rather high weight, however if modules implement the generic entity hooks they are currently still operating after Rules - as they come after the entity-type specific hooks. To fix, we need to use the generic entity hooks too for invoking rules events.
Entity type providing modules should just invoke the rules-event last. For the entity API we can fix that generally.
Comments
#1
Attached are patch for Rules + the Entity API.
#2
added a comment explaining why do it that way + including a pointer to this issue. Updated rules patch attached.
#3
some more docu fixes spotted by klausi in real-time.
#4
Ack
#5
and committed, thx. :)
#6
Automatically closed -- issue fixed for 2 weeks with no activity.
#7
I seem to have the same problem with webforms which does not seem to be an entity (inserting,not updating).
Is there another workaround I could develop / try?
For more information, please have a look at
this ticket