There's a call to $this->get_flagging() when building the parameters for invoking the Rules event. But there's a $flagging object right there!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2250543.flag_.rules-get-flagging.patch | 525 bytes | joachim |
There's a call to $this->get_flagging() when building the parameters for invoking the Rules event. But there's a $flagging object right there!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2250543.flag_.rules-get-flagging.patch | 525 bytes | joachim |
Comments
Comment #1
joachim commentedSanity check: by the time we get to the Rules invocation:
- the $flagging has been passed to drupal_write_record(), so it has an entity ID
- the $flagging has been passed to field_attach_insert(), so logically it has all the field data on it already
Therefore, the $flagging we have is as good as it's going to get. We won't gain anything by doing an entity_load() with it.
Comment #2
joachim commentedComment #4
joachim commentedTests pass, and I'm happy with my sanity check :)