When building the view of custom data for cases, CiviCase was crashing with no error message. Traced this down to a problem loading custom values.
Appears to be a problem since 5.67
Before
Array of fieldInfo is passed in
Have custom fields set up for case types.
Go to Cases / Manage Cases.
Click on a case tile to load the information, for one of the cases with custom fields.
Error 500 loading case details, user is left with the placeholder images only
After
Only fieldId is passed in
On step 4, case data is fully loaded.
Comments
As noted, this is a new issue since CiviCRM 5.67; However in earlier versions including 5.51.1, the displayValue function converts passed arrays to an id as the first step anyway, so this should not introduce a compatibility problem
Overview
When building the view of custom data for cases, CiviCase was crashing with no error message. Traced this down to a problem loading custom values. Appears to be a problem since 5.67
Before
Array of fieldInfo is passed in
After
Only fieldId is passed in
On step 4, case data is fully loaded.
Comments
As noted, this is a new issue since CiviCRM 5.67; However in earlier versions including 5.51.1, the
displayValue
function converts passed arrays to an id as the first step anyway, so this should not introduce a compatibility problem