From e5dab8dd947b0a76f6d9d38a7c7202cfb45aeb07 Mon Sep 17 00:00:00 2001 From: Upperholme Date: Mon, 4 Jul 2016 17:22:07 +0100 Subject: [PATCH] Update Summary.php CRM-18294: Remove grouping by contact enabling more than one case per contact to be listed in the report. --- CRM/Report/Form/Case/Summary.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Report/Form/Case/Summary.php b/CRM/Report/Form/Case/Summary.php index fec119e27182..a5b625463ba1 100644 --- a/CRM/Report/Form/Case/Summary.php +++ b/CRM/Report/Form/Case/Summary.php @@ -265,7 +265,7 @@ public function from() { } else { $this->_from = " - FROM civicrm_contact $c, civicrm_case $cc + FROM civicrm_case $cc inner join civicrm_case_contact $ccc on ${ccc}.case_id = ${cc}.id inner join civicrm_contact $c2 on ${c2}.id=${ccc}.contact_id "; @@ -332,7 +332,7 @@ public function where() { } public function groupBy() { - $this->_groupBy = "GROUP BY {$this->_aliases['civicrm_c2']}.id"; + $this->_groupBy = ""; } public function postProcess() {