From 832d5c06d93762f4ada965aef056b4ea92754043 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 14 Dec 2016 10:43:40 -0500 Subject: [PATCH] CRM-19764 - Pass context when fetching custom field options --- CRM/Core/PseudoConstant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/PseudoConstant.php b/CRM/Core/PseudoConstant.php index 344259f0d8e..71d514e313d 100644 --- a/CRM/Core/PseudoConstant.php +++ b/CRM/Core/PseudoConstant.php @@ -220,7 +220,7 @@ public static function get($daoName, $fieldName, $params = array(), $context = N if (strpos($fieldName, 'custom_') === 0 && is_numeric($fieldName[7])) { $customField = new CRM_Core_BAO_CustomField(); $customField->id = (int) substr($fieldName, 7); - $options = $customField->getOptions(); + $options = $customField->getOptions($context); if ($options && $flip) { $options = array_flip($options); }