From: Jon Goldberg Date: Fri, 30 Jun 2023 19:46:05 +0000 (-0400) Subject: replace deprecated functions in event fee form X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=82a9d22d60140c4bac831180efe6120656d2e148;p=civicrm-core.git replace deprecated functions in event fee form --- diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 1d1fee3823..ec5aff49a5 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1492,7 +1492,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment CRM_Financial_BAO_FinancialType::getAvailableFinancialTypes($financialTypes, $form->_action); } else { - $financialTypes = CRM_Contribute_PseudoConstant::financialType(); + $financialTypes = CRM_Contribute_BAO_Contribution::buildOptions('financial_type_id', 'create'); } $form->add('select', 'financial_type_id', @@ -1504,7 +1504,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment $form->add('select', 'payment_instrument_id', ts('Payment Method'), - ['' => ts('- select -')] + CRM_Contribute_PseudoConstant::paymentInstrument(), + ['' => ts('- select -')] + CRM_Contribute_BAO_Contribution::buildOptions('payment_instrument_id', 'create'), FALSE, ['onChange' => "return showHideByValue('payment_instrument_id','4','checkNumber','table-row','select',false);"] ); // don't show transaction id in batch update mode