From d596588e97efa58e7c311dc4a494ebc042b5531c Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Wed, 19 Dec 2018 23:55:30 +0000 Subject: [PATCH] Used buildoptions function to get all groups --- api/v3/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/Contact.php b/api/v3/Contact.php index 07913f9001..ed3a8158b4 100644 --- a/api/v3/Contact.php +++ b/api/v3/Contact.php @@ -430,7 +430,7 @@ function _civicrm_api3_contact_get_supportanomalies(&$params, &$options) { } if (isset($params['group'])) { $groups = $params['group']; - $allGroups = CRM_Core_PseudoConstant::group(); + $allGroups = CRM_Contact_BAO_GroupContact::buildOptions('group_id', 'validate'); if (is_array($groups) && in_array(key($groups), CRM_Core_DAO::acceptedSQLOperators(), TRUE)) { // Get the groups array. $groupsArray = $groups[key($groups)]; -- 2.25.1