Skip to content

Commit

Permalink
COMCL-754: Fix fetching of custom field calues for cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Shahrukh committed Aug 28, 2024
1 parent 2efcfef commit ad6ee00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Civicase/APIHelpers/CustomValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public static function formatTreeResults(array $tree, array &$result, array $toR
if (!empty($fieldInfo['customValue'])) {
$field['value'] = CRM_Utils_Array::first($fieldInfo['customValue']);
if (!$toReturn['custom_value'] || in_array('display', $toReturn['custom_value'])) {
$field['value']['display'] = CRM_Core_BAO_CustomField::displayValue($field['value']['data'], $fieldInfo);
$field['value']['display'] = CRM_Core_BAO_CustomField::displayValue($field['value']['data'], $fieldInfo['id']);
}
foreach (array_keys($field['value']) as $key) {
if ($toReturn['custom_value'] && !in_array($key, $toReturn['custom_value'])) {
Expand Down

0 comments on commit ad6ee00

Please sign in to comment.