Skip to content

Commit

Permalink
refs #40915, allow group get with nesting sub api
Browse files Browse the repository at this point in the history
  • Loading branch information
jimyhuang committed Dec 23, 2024
1 parent 5852d29 commit 747c17c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/v3/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ function civicrm_api3_group_get($params) {
if (!empty($returnProperties)) {
$returnProperties[] = 'id';
}
foreach($params as $key => $val) {
if (substr($key, 0, 4) === 'api.') {
unset($params[$key]);
}
}

$groupObjects = CRM_Contact_BAO_Group::getGroups($params, $returnProperties);
if (empty($groupObjects)) {
Expand Down

0 comments on commit 747c17c

Please sign in to comment.