* this array contains the list of members for this group id
*/
public static function &getMember($groupID, $useCache = TRUE) {
- $params = array(array('group', 'IN', array($groupID => 1), 0, 0));
+ $params = array(array('group', '=', $groupID, 0, 0));
$returnProperties = array('contact_id');
list($contacts, $_) = CRM_Contact_BAO_Query::apiQuery($params, $returnProperties, NULL, NULL, 0, 0, $useCache);
// Check if searching by parent group returns both parent and child group contacts
$searchParams = array(
- 'group' => array($parentGroup->id => 1),
+ 'group' => $parentGroup->id,
'version' => 3,
);
$result = civicrm_api('contact', 'get', $searchParams);
// Check if searching by child group returns just child group contacts
$searchParams = array(
- 'group' => array($childGroup->id => 1),
+ 'group' => $childGroup->id,
'version' => 3,
);
$result = civicrm_api('contact', 'get', $searchParams);