Closed (fixed)
Project:
Rules
Version:
7.x-2.x-dev
Component:
Provided Module Integrations
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Feb 2012 at 10:00 UTC
Updated:
26 May 2012 at 20:25 UTC
Jump to comment: Most recent file
Comments
Comment #1
fagoThanks, the approach looks good. However, we can trust Rules to pass us the right data. We need just make sure that caches are cleared when people update their installation - thus I've added an update routine for that and changed the code to rely on getting a wrapper passed.
Updated patch attached.
Comment #2
klausiwe cannot do type hinting here as there can be primitive variables (Recoverable fatal error: Argument 1 passed to rules_condition_data_is_empty() must be an instance of EntityMetadataWrapper, string given)
This comment should be more specific why we clear the cache.
Comment #3
klausiUpdated patch attached.
Comment #4
fagoouch, indeed. I've added a comment for the primitive variables and committed it.
Comment #6
mitchell commentedUpdated component.