From 0dc3c989ba9297af8c466eea66ba5cc605a9b782 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Sat, 11 Jul 2015 12:03:32 +0530 Subject: [PATCH] --ICM-17, added Setting to turn on/off FT-ACL --- CRM/Admin/Form/Preferences/Contribute.php | 1 + templates/CRM/Form/basicForm.tpl | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CRM/Admin/Form/Preferences/Contribute.php b/CRM/Admin/Form/Preferences/Contribute.php index d08996cd73..e5a46fb565 100644 --- a/CRM/Admin/Form/Preferences/Contribute.php +++ b/CRM/Admin/Form/Preferences/Contribute.php @@ -140,6 +140,7 @@ class CRM_Admin_Form_Preferences_Contribute extends CRM_Admin_Form_Preferences { $this->assign("{$setting}_description", ts($props['description'])); } $this->add('checkbox', 'invoicing', ts('Enable Tax and Invoicing')); + $this->add('checkbox', 'acl_financial_type', ts('Enable Access Control by Financial Type')); parent::buildQuickForm(); } diff --git a/templates/CRM/Form/basicForm.tpl b/templates/CRM/Form/basicForm.tpl index 6908202cc4..cbc6e60bbf 100644 --- a/templates/CRM/Form/basicForm.tpl +++ b/templates/CRM/Form/basicForm.tpl @@ -42,6 +42,11 @@ {/if} + + + {$form.acl_financial_type.html} {$form.acl_financial_type.label} {help id="acl_financial_type"} + + {/if} -- 2.25.1