From 47cfd31f4b4ab66eadcddbb549cd3ddbb7d8b1a1 Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Mon, 28 Jul 2014 16:45:34 +0530 Subject: [PATCH] Notice Fix during test execution --- CRM/Contribute/Form/SoftCredit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/SoftCredit.php b/CRM/Contribute/Form/SoftCredit.php index 415fe372f3..f725f95179 100644 --- a/CRM/Contribute/Form/SoftCredit.php +++ b/CRM/Contribute/Form/SoftCredit.php @@ -106,7 +106,7 @@ class CRM_Contribute_Form_SoftCredit { if ($form->getAction() & CRM_Core_Action::UPDATE) { $form->_softCreditInfo = CRM_Contribute_BAO_ContributionSoft::getSoftContribution($form->_id, TRUE); } - elseif ($form->_pledgeID) { + elseif (property_exists($form, "_pledgeID")) { //Check and select most recent completed contrubtion and use it to retrieve //soft-credit information to use as default for current pledge payment, CRM-13981 $pledgePayments = CRM_Pledge_BAO_PledgePayment::getPledgePayments($form->_pledgeID); -- 2.25.1