Update Summary.php
authorUpperholme <upperholme@gmail.com>
Mon, 4 Jul 2016 16:22:07 +0000 (17:22 +0100)
committerGitHub <noreply@github.com>
Mon, 4 Jul 2016 16:22:07 +0000 (17:22 +0100)
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

index fec119e271824bf72b72ad7a91cf20a3aaec1464..a5b625463ba1600c843fd6e864a9c61f47c6578f 100644 (file)
@@ -265,7 +265,7 @@ inner join civicrm_contact $c2 on ${c2}.id=${ccc}.contact_id
     }
     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 @@ inner join civicrm_contact $c2 on ${c2}.id=${ccc}.contact_id
   }
 
   public function groupBy() {
-    $this->_groupBy = "GROUP BY {$this->_aliases['civicrm_c2']}.id";
+    $this->_groupBy = "";
   }
 
   public function postProcess() {