From: eileen Date: Thu, 18 Oct 2018 20:57:47 +0000 (+1300) Subject: Fix regression on activity detail report add to group X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a8b58e72729242c4a108fb95f434693f7d5346f2;p=civicrm-core.git Fix regression on activity detail report add to group --- diff --git a/CRM/Report/Form/Activity.php b/CRM/Report/Form/Activity.php index 25d19b48a1..a2c95fe8a5 100644 --- a/CRM/Report/Form/Activity.php +++ b/CRM/Report/Form/Activity.php @@ -693,7 +693,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form { $new_having = ' addtogroup_contact_id'; $having = str_ireplace(' civicrm_contact_contact_target_id', $new_having, $this->_having); $query = "$select -FROM {$this->temporaryTables['activity_temp_table']} tar +FROM {$this->temporaryTables['activity_temp_table']['name']} tar GROUP BY civicrm_activity_id $having {$this->_orderBy}"; $select = 'AS addtogroup_contact_id'; $query = str_ireplace('AS civicrm_contact_contact_target_id', $select, $query);