From 5256492b207553c59c0ad0ebc90f321b515ecaa4 Mon Sep 17 00:00:00 2001 From: Edsel Date: Mon, 13 Jul 2015 16:44:23 +0530 Subject: [PATCH] ICM-19 Added condition for checking if ACL-FT permissions are enabled --- CRM/Event/Form/EventFees.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CRM/Event/Form/EventFees.php b/CRM/Event/Form/EventFees.php index d971fa884e..36999e29d4 100644 --- a/CRM/Event/Form/EventFees.php +++ b/CRM/Event/Form/EventFees.php @@ -419,7 +419,12 @@ SELECT id, html_type ); // Check permissions for financial type first - CRM_Financial_BAO_FinancialType::getAvailableFinancialTypes($financialTypes, 'add'); + if (CRM_Financial_BAO_FinancialType::isACLFinancialTypeStatus()) { + CRM_Financial_BAO_FinancialType::getAvailableFinancialTypes($financialTypes, 'add'); + } + else { + $financialTypes = CRM_Contribute_PseudoConstant::financialType(); + } $form->add('select', 'financial_type_id', ts('Financial Type'), -- 2.25.1