Closed (fixed)
Project:
Flag
Version:
7.x-2.x-dev
Component:
Rules integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2011 at 05:56 UTC
Updated:
31 Mar 2012 at 05:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchSame issue over at #1274162: Notice: Trying to get property of non-object in flag_rules_condition_flagged(). I don't support the Rules integration, hopefully fago will take a look at this when he gets the chance.
Comment #2
fagouhm, looks like the array keys "user" and "user" clash... Attached patch should fix it. After applying the patch, run update.php and re-configure your condition. Then it should work. Please test.
Unfortunately, the patch requires every user of the condition to re-configure the re-named parameter. :/
Comment #3
blogook commentedDo you have the patched file for me ?? i have no clue how to patch this.. :
Comment #4
infines commentedComment #5
infines commentedThe patch did the trick however, now I can't figure out how to send an email to people who've flagged a user. After that user has saved new content.
Comment #6
blogook commentedSame here .. i was finally able to use the patch and it is working now. .. but i cannot figure out how to send an email notification to the user who flagged another user.
Another aspect that I wonder about is when a user decides to flag a user, and therefor receives notifications when that user post new content.. There is no way to turn that off other than stop 'following' that user. Is it somehow possible to stop receiving notifications?
Comment #7
infines commented@blogook I just added a booleen field to user profile. Then in Rules under conditions, check if flagging user has it checked with Data Comparison.
Otherwise support on how to send an email to the flagging user of a flagged user, would be great!
Comment #8
blogook commentedI found the answer:
http://drupal.stackexchange.com/questions/19885/how-do-i-send-an-email-n...
Comment #9
blogook commentedCan you pls explain a bit more about that boolean field? :)
Comment #10
infines commentedComment #11
infines commentedContact my via my contact page and I'll explain. For now, this needs a commit, stat.
Comment #12
pixelsticks commentedI'm getting a failure beginning at line 450 when I apply the patch. I ran update.php anyway, unflagged and reflagged the test account and recreated the rule entirely but no luck. Am I missing a step?
Thanks!
Comment #13
infines commentedclear caches?
Comment #14
fagoYep, after the patch has been applied you need to clear your caches, i.e. run update.php.
Committed.
Comment #15
pixelsticks commentedSuccess -- terminal wasn't doing the trick so I had to manually patch the file. Thanks, guys!