From: yashodha Date: Fri, 22 Jan 2016 06:56:48 +0000 (+0530) Subject: CRM-17796: profile search limit by group doesn't use the correct ID X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3b992cb65e2b348f71f209aa66e20fb58f29e49f;p=civicrm-core.git CRM-17796: profile search limit by group doesn't use the correct ID ---------------------------------------- * CRM-17796: profile search limit by group doesn't use the correct ID https://issues.civicrm.org/jira/browse/CRM-17796 --- diff --git a/CRM/Contact/BAO/GroupContact.php b/CRM/Contact/BAO/GroupContact.php index 2e52d1316e..57a258bbdd 100644 --- a/CRM/Contact/BAO/GroupContact.php +++ b/CRM/Contact/BAO/GroupContact.php @@ -447,7 +447,7 @@ class CRM_Contact_BAO_GroupContact extends CRM_Contact_DAO_GroupContact { * @param int $contactId * Id of the contact. * @param int $groupID - * Id of a perticuler group. + * Id of a particular group. * @param string $method * If we want the subscription history details for a specific method. * @@ -489,7 +489,7 @@ SELECT * * Method to get Group Id. * * @param int $groupContactID - * Id of a perticuler group. + * Id of a particular group. * * * @return groupID @@ -576,7 +576,7 @@ SELECT * } $params = array( - array('group', 'IN', array($groupID => 1), 0, 0), + array('group', 'IN', array($groupID), 0, 0), array('contact_id', '=', $contactID, 0, 0), ); list($contacts, $_) = CRM_Contact_BAO_Query::apiQuery($params, array('contact_id'));