diff --git a/CRM/Price/BAO/PriceField.php b/CRM/Price/BAO/PriceField.php index f48cd14e832c..091d9810e414 100644 --- a/CRM/Price/BAO/PriceField.php +++ b/CRM/Price/BAO/PriceField.php @@ -865,14 +865,10 @@ public static function getTaxLabel($opt, $valueFieldName, $displayOpt, $taxTerm) public static function getVisibilityOptionID($visibilityName) { if (!isset(self::$visibilityOptionsKeys)) { - self::$visibilityOptionsKeys = CRM_Price_BAO_PriceField::buildOptions( - 'visibility_id', - NULL, - [ - 'labelColumn' => 'name', - 'flip' => TRUE, - ] - ); + self::$visibilityOptionsKeys = CRM_Core_PseudoConstant::get('CRM_Price_BAO_PriceField', 'visibility_id', [ + 'labelColumn' => 'name', + 'flip' => TRUE, + ]); } if (isset(self::$visibilityOptionsKeys[$visibilityName])) {