From 530a05b303cc49935ed7e849b82df69bca319523 Mon Sep 17 00:00:00 2001 From: yashodha Date: Fri, 20 Nov 2015 17:08:01 +0530 Subject: [PATCH] CRM-17469: fix pledge id for online payment ---------------------------------------- * CRM-17469: Online pledge payment credits scheduled amount, not actual amount https://issues.civicrm.org/jira/browse/CRM-17469 --- CRM/Contribute/Form/Contribution/Confirm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index c0fee51207..460e303a7f 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -814,7 +814,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr $isEmailReceipt = !empty($form->_values['is_email_receipt']); $isSeparateMembershipPayment = empty($params['separate_membership_payment']) ? FALSE : TRUE; - $pledgeID = empty($params['pledge_id']) ? NULL : $params['pledge_id']; + $pledgeID = !empty($params['pledge_id']) ? $params['pledge_id'] : CRM_Utils_Array::value('pledge_id', $form->_values); if (!$isSeparateMembershipPayment && !empty($form->_values['pledge_block_id']) && (!empty($params['is_pledge']) || $pledgeID)) { $isPledge = TRUE; -- 2.25.1