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:
b90832b
)
Fix fatal error on contribution summary report -> add to group action
author
Jitendra Purohit
<jitendra@fuzion.co.nz>
Mon, 21 Dec 2020 11:00:25 +0000
(16:30 +0530)
committer
Jitendra Purohit
<jitendra@fuzion.co.nz>
Mon, 21 Dec 2020 11:00:25 +0000
(16:30 +0530)
CRM/Report/Form.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Report/Form.php
b/CRM/Report/Form.php
index b70d4869e6aca0ba6119eda19106678cfd8acc18..ceaca5ef39049a661f6397b316a1f05fbd32edba 100644
(file)
--- a/
CRM/Report/Form.php
+++ b/
CRM/Report/Form.php
@@
-4962,7
+4962,11
@@
LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a
$select = preg_replace('/SELECT(\s+SQL_CALC_FOUND_ROWS)?\s+/i', $select, $this->_select);
$sql = "{$select} {$this->_from} {$this->_where} {$this->_groupBy} {$this->_having} {$this->_orderBy}";
$sql = str_replace('WITH ROLLUP', '', $sql);
+ if (!$this->optimisedForOnlyFullGroupBy) {
+ CRM_Core_DAO::disableFullGroupByMode();
+ }
$dao = CRM_Core_DAO::executeQuery($sql);
+ CRM_Core_DAO::reenableFullGroupByMode();
$contact_ids = [];
// Add resulting contacts to group