From ad6ee007b418f7f8ec9423d59166f56cbcb00a66 Mon Sep 17 00:00:00 2001 From: Muhammad Shahrukh <> Date: Wed, 28 Aug 2024 15:04:51 +0500 Subject: [PATCH] COMCL-754: Fix fetching of custom field calues for cases --- CRM/Civicase/APIHelpers/CustomValues.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Civicase/APIHelpers/CustomValues.php b/CRM/Civicase/APIHelpers/CustomValues.php index b745cdad5..8ebfaff17 100644 --- a/CRM/Civicase/APIHelpers/CustomValues.php +++ b/CRM/Civicase/APIHelpers/CustomValues.php @@ -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'])) {