Closed (fixed)
Project:
Activity
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jul 2009 at 19:17 UTC
Updated:
16 Aug 2009 at 15:30 UTC
There's a bug in user_activity_type_check() that prevents user activities targeting specific roles (those with some of the type checkboxes checked) from being recorded. The user's roles are store in the keys of $token_objects['account']->roles but the $types passed to hook_activity_type_check() are in the values.
The attached patch modifies user_activity_type_check() to compare the correct values and to return a Boolean value rather than an integer as is specified in the documentation in DEVELOPER.txt.
| Comment | File | Size | Author |
|---|---|---|---|
| activity_user_roles.patch | 997 bytes | drewish |
Comments
Comment #1
sirkitree commentedThank you, committed.