From: Andrew Hunt Date: Mon, 25 Mar 2013 22:10:29 +0000 (-0400) Subject: make group_id be id (after the opposite was done) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ca1b55f79510f5f2df4762404fb06acc86e8c7a9;p=civicrm-core.git make group_id be id (after the opposite was done) --- 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);