make group_id be id (after the opposite was done)
authorAndrew Hunt <andrew@aghstrategies.com>
Mon, 25 Mar 2013 22:10:29 +0000 (18:10 -0400)
committerAndrew Hunt <andrew@aghstrategies.com>
Mon, 25 Mar 2013 22:10:29 +0000 (18:10 -0400)
api/v3/Group.php

index 817a783c00b84f085d28ddc9dd8548657445aff1..e5255d421655041abb125eb99563a89ba9177038 100644 (file)
@@ -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);