From e8580f46dc21c37bac5e4be3266fcdd87e4c66e3 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 16 Jun 2020 08:00:54 +1000 Subject: [PATCH] dev/core#1823 Fix building the Price Field visibility options --- CRM/Price/BAO/PriceField.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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])) {