[REF] remove never-set, mispelt parameter
authoreileen <emcnaughton@wikimedia.org>
Mon, 29 Jul 2019 03:08:20 +0000 (15:08 +1200)
committereileen <emcnaughton@wikimedia.org>
Mon, 29 Jul 2019 03:08:20 +0000 (15:08 +1200)
CRM/Event/Form/Registration.php
CRM/Event/Form/Registration/AdditionalParticipant.php
CRM/Event/Form/Registration/Register.php

index b29b6c7bc289864244bdb0f43b1e820e91f87b2a..d9a1825e149ade4153d5ce4d396d68802ee6695e 100644 (file)
@@ -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);
index 5e665f0175ea218e08f5eb6a1f0e1565910adb62..25f273cbaf718775a44b6091d1fd217a3bc51ddd 100644 (file)
@@ -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;
       }
     }
index 2fcd458f8408cbeb7d4daad12a4febc8c946fd66..57586f251cce5e427d899742e360be22ca219866 100644 (file)
@@ -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;
       }