*/
public static function getDisplayValue($value, $id, &$options, $contactID = NULL, $fieldID = NULL) {
$option = &$options[$id];
- $attributes = &$option['attributes'];
- $html_type = $attributes['html_type'];
- $data_type = $attributes['data_type'];
- $format = CRM_Utils_Array::value('format', $attributes);
+ $field = self::getFieldObject($id);
return self::getDisplayValueCommon($value,
$option,
- $html_type,
- $data_type,
- $format,
+ $field->html_type,
+ $field->data_type,
+ NULL,
$contactID,
$fieldID
);