projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
696d6fe
)
make group_id be id (after the opposite was done)
author
Andrew Hunt
<andrew@aghstrategies.com>
Mon, 25 Mar 2013 22:10:29 +0000
(18:10 -0400)
committer
Andrew Hunt
<andrew@aghstrategies.com>
Mon, 25 Mar 2013 22:10:29 +0000
(18:10 -0400)
api/v3/Group.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/Group.php
b/api/v3/Group.php
index 817a783c00b84f085d28ddc9dd8548657445aff1..e5255d421655041abb125eb99563a89ba9177038 100644
(file)
--- 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);