From d6dce594c17fe00278e1c7f7eb14fe9593b4203b Mon Sep 17 00:00:00 2001 From: monishdeb Date: Thu, 2 Oct 2014 03:20:17 +0530 Subject: [PATCH] Additional fix of CRM-15364 ---------------------------------------- * CRM-15364: Change Registration Selections: problems handling discounted line items and full options https://issues.civicrm.org/jira/browse/CRM-15364 --- CRM/Event/Form/Participant.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 2b18f13ffa..c64aaac158 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1391,6 +1391,9 @@ class CRM_Event_Form_Participant extends CRM_Contact_Form_Task { if ($contributionParams['contribution_status_id'] == CRM_Core_OptionGroup::getValue('contribution_status', 'Pending', 'name')) { $contributionParams['is_pay_later'] = 1; } + elseif ($contributionParams['contribution_status_id'] == CRM_Core_OptionGroup::getValue('contribution_status', 'Completed', 'name')) { + $contributionParams['is_pay_later'] = 0; + } if ($params['status_id'] == array_search('Partially paid', $participantStatus)) { if (!$amountOwed && $this->_action & CRM_Core_Action::UPDATE) { -- 2.25.1