Skip to content

Commit

Permalink
Merge pull request #13603 from pradpnayak/AdvMailin
Browse files Browse the repository at this point in the history
dev/core/issues/726, Fixed fatal error when searched using group type
  • Loading branch information
eileenmcnaughton authored Mar 17, 2019
2 parents f01f014 + 9ca472a commit 8dc65d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CRM/Contact/BAO/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -3024,6 +3024,10 @@ public function group($values) {
$regularGroupIDs = array_merge($regularGroupIDs, $childGroupIds);
}

if (empty($regularGroupIDs)) {
$regularGroupIDs = [0];
}

// if $regularGroupIDs is populated with regular child group IDs
// then change the mysql operator to desired
if (count($regularGroupIDs) > 1) {
Expand Down

0 comments on commit 8dc65d8

Please sign in to comment.