From ca1b55f79510f5f2df4762404fb06acc86e8c7a9 Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Mon, 25 Mar 2013 18:10:29 -0400 Subject: [PATCH] make group_id be id (after the opposite was done) --- api/v3/Group.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/v3/Group.php b/api/v3/Group.php index 817a783c00..e5255d4216 100644 --- a/api/v3/Group.php +++ b/api/v3/Group.php @@ -108,6 +108,9 @@ function civicrm_api3_group_get($params) { $returnProperties['id'] = 1; $returnProperties = array_keys($returnProperties); } + if (CRM_Utils_Array::value('group_id', $inputParams)) { + $inputParams['id'] = $inputParams['group_id']; + } $groupObjects = CRM_Contact_BAO_Group::getGroups($inputParams, $returnProperties, $sort, $offset, $rowCount); if (empty($groupObjects)) { return civicrm_api3_create_success(FALSE); -- 2.25.1