From 81936ec3a68f11a2b8254d46a78fef316374a9b9 Mon Sep 17 00:00:00 2001 From: "agbud8@zabuntu" Date: Wed, 10 Feb 2021 16:55:46 -0500 Subject: [PATCH] replace deprecated calls with buildOptions --- CRM/Contribute/Form/Contribution.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index 955249973e..d843075338 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -627,10 +627,10 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP if (!$this->_mode) { // payment_instrument isn't required in edit and will not be present when payment block is enabled. $required = !$this->_id; - $checkPaymentID = array_search('Check', CRM_Contribute_PseudoConstant::paymentInstrument('name')); + $checkPaymentID = array_search('Check', CRM_Contribute_BAO_Contribution::buildOptions('payment_instrument_id', 'validate')); $paymentInstrument = $this->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'), $required, ['onChange' => "return showHideByValue('payment_instrument_id','{$checkPaymentID}','checkNumber','table-row','select',false);"] ); } -- 2.25.1