• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/basetype/select.php
  • Класс: BitrixBizprocBaseTypeSelect
  • Вызов: Select::formatValueSingle
static function formatValueSingle(FieldType $fieldType, $value, $format = 'printable')
{
	if (CBPHelper::isAssociativeArray($value))
	{
		$keys = array_keys($value);
		$value = isset($keys[0]) ? $keys[0] : null;
	}

	if (is_array($value))
	{
		$value = current(array_values($value));
	}

	return parent::formatValueSingle($fieldType, $value, $format);
}