From: jitendrapurohit Date: Fri, 12 Sep 2014 10:33:12 +0000 (+0530) Subject: CRM-15281 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0f1a91cdfc0a631519766221008940c391877dd1;p=civicrm-core.git CRM-15281 --- 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)) {