[buddypress-trac] [BuddyPress] #2733: groups_join_group() parameter fixes

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Nov 11 20:49:45 UTC 2010


#2733: groups_join_group() parameter fixes
-----------------------+----------------------------------------------------
 Reporter:  r-a-y      |       Owner:       
     Type:  defect     |      Status:  new  
 Priority:  normal     |   Milestone:  1.3  
Component:  Groups     |     Version:  1.2.6
 Keywords:  has-patch  |  
-----------------------+----------------------------------------------------
 When passing an external $user_id or $group_id, groups_join_group()
 doesn't accurately pass the parameters properly.

 1) groups_join_group() checks if $bp->current_group exists, but it should
 be checking if a $group_id is passed

 2) groups_record_activity() in groups_join_group() needs to pass the
 $user_id so it accurately records activity for users who aren't logged in

 Patch is against 1.2.6.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2733>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list