From 5e8260776cbc6ded773305d18c863145e01139cf Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Wed, 10 Oct 2018 03:07:14 +0530 Subject: [PATCH] Support full group by mode --- CRM/Volunteer/Form/VolunteerReport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Volunteer/Form/VolunteerReport.php b/CRM/Volunteer/Form/VolunteerReport.php index bc67ce9a..8f24ed46 100644 --- a/CRM/Volunteer/Form/VolunteerReport.php +++ b/CRM/Volunteer/Form/VolunteerReport.php @@ -613,7 +613,7 @@ function statistics(&$rows) { } function groupBy() { - $this->_groupBy = "GROUP BY {$this->_aliases['civicrm_activity']}.id"; + $this->_groupBy = CRM_Contact_BAO_Query::getGroupByFromSelectColumns($this->_selectClauses, "{$this->_aliases['civicrm_activity']}.id"); } function buildACLClause($tableAlias = 'contact_a') {