From: eileenmcnaugton Date: Tue, 25 Aug 2015 18:40:29 +0000 (+1200) Subject: CRM-16914 fix reference to payment_instrument_id X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f3a63d1e965e0d864daa6c3eec7df46b026e1e2f;p=civicrm-core.git CRM-16914 fix reference to payment_instrument_id --- diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index d5f22c64d9..2dda394e91 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -1785,8 +1785,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr $isMonetary = !empty($form->_values['is_monetary']); if ($isMonetary) { if (empty($paymentParams['is_pay_later'])) { - // @todo look up payment_instrument_id on payment processor table. - $contributionParams['payment_instrument_id'] = 1; + $contributionParams['payment_instrument_id'] = $form->_paymentProcessor['payment_instrument_id']; } } $membershipContribution = CRM_Contribute_Form_Contribution_Confirm::processFormContribution($form,