Commit 68aa5bd7 authored by Pradeep Nayak's avatar Pradeep Nayak
Browse files

CRM-20857, fixed report for sql_mode=only_full_group_by

----------------------------------------
* CRM-20857: Deferred Revenue report -  DB Error: unknown error
  https://issues.civicrm.org/jira/browse/CRM-20857

fixed style
parent 2c6536b5
......@@ -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