Fix missing auto_increment and FGB error #1

Merged
CiviWare merged 2 commits from jon/com.megaphonetech.relateentities:master into master 2019-09-20 16:46:18 +00:00
Showing only changes of commit 31cc8d3d06 - Show all commits

View File

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