Fix regression on activity detail report add to group
authoreileen <emcnaughton@wikimedia.org>
Thu, 18 Oct 2018 20:57:47 +0000 (09:57 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 18 Oct 2018 20:57:47 +0000 (09:57 +1300)
CRM/Report/Form/Activity.php

index 25d19b48a16a9d5b73ff935e754385a945d77f36..a2c95fe8a59f310a3b55bfc652497c677ca5fda6 100644 (file)
@@ -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);