Voting starts in March for the Drupal Association Board election.
If you create a user flag and try to use "User is flagged" as a condition in a rule an error is thrown:
Notice: Trying to get property of non-object in flag_rules_condition_flagged() (line 399 of /Users/creynder/Dropbox/Work/Research/Drupal/drupal-7.x/sites/all/modules/flag/flag.rules.inc).
And the rule action is not executed.
The error is thrown in the
After a little debugging I found out the the 3rd parameter (
$account) does not receive a user object, but an array containing 2 keys:
user:select. See att. for dsm dump.
The 2nd parameter
$entity however does receive the correct user object.
This rule condition does work as it should with node flags.
|#12||2015-05-15 16-31-59.png||74.97 KB||stBorchert|
PASSED: [[SimpleTest]]: [MySQL] 448 pass(es). View
PASSED: [[SimpleTest]]: [MySQL] 254 pass(es). View
|Screen shot 2012-05-31 at 11.01.14.png||26.81 KB||creynders|