CRM-18294: Remove grouping by contact enabling more than one case per contact to be listed in the report.
}
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
";
}
public function groupBy() {
- $this->_groupBy = "GROUP BY {$this->_aliases['civicrm_c2']}.id";
+ $this->_groupBy = "";
}
public function postProcess() {