notice fix
authoryashodha <yashodha.chaku@webaccess.co.in>
Mon, 6 May 2013 05:39:04 +0000 (11:09 +0530)
committeryashodha <yashodha.chaku@webaccess.co.in>
Mon, 6 May 2013 05:39:04 +0000 (11:09 +0530)
CRM/Contribute/Form/Contribution.php

index 91eebcd0fad5d9945dd3266f739c58bfad43f2ce..b9b36cb4eb9054ca7bccdb4de98f5999e9cb64bb 100644 (file)
@@ -1133,7 +1133,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
           if ($val && $submittedValues['soft_credit_amount'][$key]) {
             $softParams[$key]['contact_id'] = $val;
             $softParams[$key]['amount'] = $submittedValues['soft_credit_amount'][$key];
-            if ($submittedValues['soft_credit_id'][$key]) {
+            if (!empty($submittedValues['soft_credit_id'][$key])) {
               $softParams[$key]['id'] = $submittedValues['soft_credit_id'][$key];
             }
           }