Fix FGB error

This commit is contained in:
Jon Goldberg 2019-09-20 11:49:15 -04:00
parent dbed69ca12
commit 31cc8d3d06
No known key found for this signature in database
GPG Key ID: C2D2247364F9DB13
1 changed files with 5 additions and 3 deletions

View File

@ -208,13 +208,15 @@ class CRM_RelateEntities_Utils {
) AS temp ) AS temp
$groupByClause $groupByClause
"; ";
CRM_Core_DAO::disableFullGroupByMode();
if ($getCount) { if ($getCount) {
return CRM_Core_DAO::singleValueQuery($query, $queryParams); $result = CRM_Core_DAO::singleValueQuery($query, $queryParams);
} }
else { else {
return CRM_Core_DAO::executeQuery($query, $queryParams); $result = CRM_Core_DAO::executeQuery($query, $queryParams);
} }
CRM_Core_DAO::reenableFullGroupByMode();
return $result;
} }
} }