From fef7421418678c8512484d15598b8c85c63d19b9 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 12 May 2023 11:44:08 +1200 Subject: [PATCH] Remove missing deprecated tag --- CRM/Price/BAO/PriceSet.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Price/BAO/PriceSet.php b/CRM/Price/BAO/PriceSet.php index e263fdf3de..e15841bf29 100644 --- a/CRM/Price/BAO/PriceSet.php +++ b/CRM/Price/BAO/PriceSet.php @@ -544,6 +544,9 @@ WHERE id = %1"; * @param bool $doNotIncludeExpiredFields * @param int $priceSetId * Price Set ID + * + * @throws \CRM_Core_Exception + * @deprecated in CiviCRM 5.58, will be removed around CiviCRM 5.70. */ public static function initSet(&$form, $entityTable = 'civicrm_event', $doNotIncludeExpiredFields = FALSE, $priceSetId = NULL) { CRM_Core_Error::deprecatedFunctionWarning('no alternative'); @@ -591,7 +594,7 @@ WHERE id = %1"; $form->_values['fee'] = $form->_priceSet['fields'] ?? NULL; //get the price set fields participant count. - if ($entityTable == 'civicrm_event') { + if ($entityTable === 'civicrm_event') { //get option count info. $form->_priceSet['optionsCountTotal'] = self::getPricesetCount($priceSetId); if ($form->_priceSet['optionsCountTotal']) { -- 2.25.1