Remove one more ref to undefined property contributeMode
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 22 Sep 2023 02:40:06 +0000 (14:40 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 22 Oct 2023 22:11:23 +0000 (11:11 +1300)
CRM/Event/Form/Registration.php

index b49d0066695ec3ef5c3c0be89b022f59f60f67ee..1595d77e05a20e9cdb9f276c0c2560e964870e04 100644 (file)
@@ -473,8 +473,7 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
 
     $this->assign('address', CRM_Utils_Address::getFormattedBillingAddressFieldsFromParameters($params, $this->_bltID));
 
-    // The concept of contributeMode is deprecated.
-    if ($this->_contributeMode === 'direct' && empty($params['is_pay_later'])) {
+    if ($this->getSubmittedValue('credit_card_number')) {
       if (isset($params['credit_card_exp_date'])) {
         $date = CRM_Utils_Date::format($params['credit_card_exp_date']);
         $date = CRM_Utils_Date::mysqlToIso($date);