From 0d9ff2d4538a53843f0aee05e67a4cde9d25a9dd Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Mon, 5 Oct 2015 17:28:13 +1300 Subject: [PATCH] CRM-17334 ensure installments is passed to membership rocessing if set (It could be set by a hook) --- CRM/Contribute/Form/Contribution/Confirm.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index b367b2f4f5..461987e889 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -2186,7 +2186,10 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr * @param bool $isPayLater */ protected function doMembershipProcessing($contactID, $membershipParams, $premiumParams, $isPayLater) { - + // This could be set by a hook. + if (!empty($this->_params['installments'])) { + $membershipParams['installments'] = $this->_params['installments']; + } // added new parameter for cms user contact id, needed to distinguish behaviour for on behalf of sign-ups if (isset($this->_params['related_contact'])) { $membershipParams['cms_contactID'] = $this->_params['related_contact']; -- 2.25.1