Skip to content

Commit

Permalink
Merge pull request #9540 from colemanw/CRM-19764
Browse files Browse the repository at this point in the history
CRM-19764 - Pass context when fetching custom field options
  • Loading branch information
colemanw authored Dec 15, 2016
2 parents e0e8e7e + 832d5c0 commit 52b84b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/PseudoConstant.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 52b84b1

Please sign in to comment.