CRM-15281
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 12 Sep 2014 10:33:12 +0000 (16:03 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 12 Sep 2014 10:33:12 +0000 (16:03 +0530)
CRM/Contribute/Form/Contribution.php

index bc42f27862d70ac3310e5480b676ab10e5ae4148..b6b88e1a01ce995548f09e7e096a99c6a9971678 100644 (file)
@@ -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)) {