ensure activity reports with custom fields work properly.
authorJamie McClelland <jm@mayfirst.org>
Tue, 19 Nov 2013 19:43:36 +0000 (14:43 -0500)
committerJamie McClelland <jm@mayfirst.org>
Tue, 19 Nov 2013 19:43:36 +0000 (14:43 -0500)
See http://issues.civicrm.org/jira/browse/CRM-13715

CRM/Report/Form/Activity.php

index 8a37820c045b4ab8864e4d846030e1064020a24b..961e1b274dfb273819d9f9c6501095c516057c52 100644 (file)
@@ -568,6 +568,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
     // 1. fill temp table with target results
     $this->select('target');
     $this->from('target');
+    $this->customDataFrom();
     $this->where('target');
     $insertCols = implode(',', $this->_selectAliases);
     $tempQuery  = "CREATE TEMPORARY TABLE civireport_activity_temp_target CHARACTER SET utf8 COLLATE utf8_unicode_ci AS
@@ -592,6 +593,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
       CRM_Utils_Array::value("contact_assignee_value", $this->_params)) {
       $this->select('assignee');
       $this->from('assignee');
+      $this->customDataFrom();
       $this->where('assignee');
       $insertCols = implode(',', $this->_selectAliases);
       $tempQuery  = "INSERT INTO civireport_activity_temp_target ({$insertCols})
@@ -606,6 +608,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
       CRM_Utils_Array::value("contact_source_value", $this->_params)) {
       $this->select('source');
       $this->from('source');
+      $this->customDataFrom();
       $this->where('source');
       $insertCols = implode(',', $this->_selectAliases);
       $tempQuery  = "INSERT INTO civireport_activity_temp_target ({$insertCols})