From a8b58e72729242c4a108fb95f434693f7d5346f2 Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 19 Oct 2018 09:57:47 +1300 Subject: [PATCH] Fix regression on activity detail report add to group --- CRM/Report/Form/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1