From f6503316a132c81ccd8a4bee02e2dd466e25cd25 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 29 Jul 2019 15:08:20 +1200 Subject: [PATCH] [REF] remove never-set, mispelt parameter --- CRM/Event/Form/Registration.php | 5 ----- CRM/Event/Form/Registration/AdditionalParticipant.php | 1 - CRM/Event/Form/Registration/Register.php | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/CRM/Event/Form/Registration.php b/CRM/Event/Form/Registration.php index b29b6c7bc2..d9a1825e14 100644 --- a/CRM/Event/Form/Registration.php +++ b/CRM/Event/Form/Registration.php @@ -168,8 +168,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { public $_lineItemParticipantsCount; public $_availableRegistrations; - public $_forcePayement; - /** * @var bool * @deprecated @@ -233,8 +231,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { // check for waitlisting. $this->_allowWaitlist = $this->get('allowWaitlist'); - $this->_forcePayement = $this->get('forcePayement'); - //get the additional participant ids. $this->_additionalParticipantIds = $this->get('additionalParticipantIds'); $config = CRM_Core_Config::singleton(); @@ -252,7 +248,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { // get all the values from the dao object $this->_values = $this->_fields = array(); - $this->_forcePayement = FALSE; //retrieve event information $params = array('id' => $this->_eventId); diff --git a/CRM/Event/Form/Registration/AdditionalParticipant.php b/CRM/Event/Form/Registration/AdditionalParticipant.php index 5e665f0175..25f273cbaf 100644 --- a/CRM/Event/Form/Registration/AdditionalParticipant.php +++ b/CRM/Event/Form/Registration/AdditionalParticipant.php @@ -552,7 +552,6 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R CRM_Price_BAO_PriceSet::processAmount($self->_values['fee'], $fields, $lineItem); if ($fields['amount'] > 0) { $validatePayement = TRUE; - // $self->_forcePayement = true; // return false; } } diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index 2fcd458f84..57586f251c 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -888,7 +888,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { $isZeroAmount = TRUE; } - if ($isZeroAmount && !($form->_forcePayement && !empty($fields['additional_participants']))) { + if ($isZeroAmount) { $skipPaymentValidation = TRUE; } -- 2.25.1