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() {