Rules integration calls og_is_group_member() with wrong arguments.

crea - November 1, 2009 - 03:43
Project:Organic groups
Version:6.x-2.x-dev
Component:og.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

It's probably outdated, i.e. at some point OG api changed but Rules integration wasn't updated to reflect the changes.
Now it's using og_is_group_member($node->nid, $user) but actual function should be called like og_is_group_member($gid, $include_admins = TRUE, $uid = NULL)

#1

crea - November 1, 2009 - 04:09
Status:active» needs review

Attached patch fixes this bug. Also it adds checkbox for condition "user is member" so it's possible to control $include_admins variable.

AttachmentSize
og-rules-ismember-fix.patch 1.6 KB

#2

moshe weitzman - November 13, 2009 - 22:15

would be good to get a review/confirmation from a rules developer.

 
 

Drupal is a registered trademark of Dries Buytaert.