From 802ac40cf95bbf3d76c914bb13107267cb138f9f Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Tue, 14 Jul 2015 12:42:05 +0530 Subject: [PATCH] --ICM-17, added condition to check for ACL-FT is turned on or off --- CRM/Report/Form.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index e971b5f9f7..967c02a628 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -4495,6 +4495,9 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a public function getPermissionedFTQuery(&$query, $alias = NULL) { + if (CRM_Financial_BAO_FinancialType::isACLFinancialTypeStatus()) { + return FALSE; + } CRM_Financial_BAO_FinancialType::getAvailableFinancialTypes($financialTypes); if (empty($financialTypes)) { $contFTs = "0"; -- 2.25.1