From 0f1a91cdfc0a631519766221008940c391877dd1 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Fri, 12 Sep 2014 16:03:12 +0530 Subject: [PATCH] CRM-15281 --- CRM/Contribute/Form/Contribution.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index bc42f27862..b6b88e1a01 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -1241,7 +1241,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP // if non_deductible_amount exists i.e. Additional Details field set was opened [and staff typed something] - // if non_deductible_amount does NOT exist - then calculate it depending on: // $ContributionType->is_deductible and whether there is a product (premium). - if (!isset($params['non_deductible_amount']) || (!empty($params['non_deductible_amount']))) { + if (empty($params['non_deductible_amount'])) { $contributionType = new CRM_Financial_DAO_FinancialType(); $contributionType->id = $params['financial_type_id']; if (!$contributionType->find(TRUE)) { -- 2.25.1