From: Coleman Watts Date: Wed, 14 Dec 2016 15:43:40 +0000 (-0500) Subject: CRM-19764 - Pass context when fetching custom field options X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=832d5c06d93762f4ada965aef056b4ea92754043;p=civicrm-core.git CRM-19764 - Pass context when fetching custom field options --- diff --git a/CRM/Core/PseudoConstant.php b/CRM/Core/PseudoConstant.php index 344259f0d8..71d514e313 100644 --- a/CRM/Core/PseudoConstant.php +++ b/CRM/Core/PseudoConstant.php @@ -220,7 +220,7 @@ class CRM_Core_PseudoConstant { 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); }