Commit 75b08676 authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #10646 from JMAConsulting/deferred

[ready for core team review] CRM-20857: fixed Deferred Report for sql_mode=only_full_group_by
parents b44fe245 68aa5bd7
......@@ -384,6 +384,13 @@ class CRM_Report_Form_Contribute_DeferredRevenue extends CRM_Report_Form {
*/
public function groupBy() {
$this->_groupBy = "GROUP BY {$this->_aliases['civicrm_financial_account']}.id, {$this->_aliases['civicrm_financial_account_1']}.id, {$this->_aliases['civicrm_financial_item']}.id";
$this->_select = CRM_Contact_BAO_Query::appendAnyValueToSelect(
$this->_selectClauses,
array(
"{$this->_aliases['civicrm_financial_account_1']}.id",
"{$this->_aliases['civicrm_financial_item']}.id",
)
);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment