CRM-20169 Bug fixes
authorEdsel <edsel.lopez@jmaconsulting.biz>
Wed, 1 Mar 2017 12:04:20 +0000 (17:34 +0530)
committerEdsel <edsel.lopez@jmaconsulting.biz>
Wed, 1 Mar 2017 12:04:20 +0000 (17:34 +0530)
----------------------------------------
* CRM-20169: Add support for alterReportVar hook in Activity Report
  https://issues.civicrm.org/jira/browse/CRM-20169

CRM/Report/Form/Activity.php

index 63e16980382351368cabd60e769ef40809bfb2e8..3adeec00aa43e1b2e3807a4a48392fc88a77678a 100644 (file)
@@ -872,7 +872,7 @@ GROUP BY civicrm_activity_id $having {$this->_orderBy}";
       INNER JOIN civicrm_activity_contact {$this->_aliases['civicrm_activity_contact']} ON {$this->_aliases['civicrm_activity_contact']}.activity_id = {$this->_aliases['civicrm_activity']}.id
       AND {$this->_aliases['civicrm_activity_contact']}.record_type_id = {$sourceID}
       LEFT JOIN civicrm_contact contact_civireport ON contact_civireport.id = {$this->_aliases['civicrm_activity_contact']}.contact_id 
-      WHERE {$this->_aclWhere} {$groupByFromSelect} {$this->_having} {$this->_orderBy} {$this->_limit}";
+      WHERE (1) AND {$this->_aclWhere} {$groupByFromSelect} {$this->_having} {$this->_orderBy} {$this->_limit}";
 
     $this->buildRows($sql, $rows);