diff --git a/lib/iblockfield.php b/lib/iblockfield.php index da58efa..136410b 100644 --- a/lib/iblockfield.php +++ b/lib/iblockfield.php @@ -69,10 +69,24 @@ public static function GetAdminListViewHTML($arProperty, $value, $strHTMLControl if(!is_array($value["VALUE"])) $value = static::ConvertFromDB($arProperty, $value); $ar = $value["VALUE"]; - if($ar) - return htmlspecialcharsEx($ar["TYPE"].":".$ar["TEXT"]); - else - return " "; + if($ar) { + if (is_array($ar)) { + return htmlspecialcharsEx($ar["TYPE"].":".$ar["TEXT"]); + } + if (is_string($ar)) { + $json = json_decode($ar, true); + $text = []; + foreach($json as $line) { + if (is_array($line['data'])) { + continue; + } + $text[] = $line['data']; + } + return implode("
", $text); + } + } + + return " "; } public static function GetPublicEditHTML($arProperty, $value, $strHTMLControlName)