From 50d73e7fca503cb2fdc93fed9c0c53d7ba01f6b2 Mon Sep 17 00:00:00 2001 From: acognet Date: Fri, 12 Nov 2021 11:20:48 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B04346=20-=20Restore=20HTML=20metadata=20(?= =?UTF-8?q?data-xxx)=20on=20lists=20in=20the=20backoffice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/Controller/AjaxRenderController.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sources/Controller/AjaxRenderController.php b/sources/Controller/AjaxRenderController.php index ec36b3b4d..c4c98c731 100644 --- a/sources/Controller/AjaxRenderController.php +++ b/sources/Controller/AjaxRenderController.php @@ -11,6 +11,7 @@ use ApplicationContext; use ApplicationMenu; use AttributeLinkedSet; use AttributeOneWayPassword; +use AttributeTagSet; use BinaryExpression; use BulkExport; use BulkExportException; @@ -32,6 +33,7 @@ use iTopExtension; use iTopExtensionsMap; use JsonPage; use MetaModel; +use ormSet; use RunTimeEnvironment; use ScalarExpression; use SetupUtils; @@ -92,7 +94,11 @@ class AjaxRenderController if (!$bExcludeRawValue) { $oRawValue = $aObject[$sAlias]->Get($sAttCode); - $aObj[$sAlias."/".$sAttCode."/raw"] = $oRawValue; + if($oRawValue instanceof AttributeTagSet or $oRawValue instanceof ormSet ){ + $aObj[$sAlias."/".$sAttCode."/raw"] = implode(", ", $oRawValue->GetValues()); + } else { + $aObj[$sAlias."/".$sAttCode."/raw"] = $oRawValue; + } } } $sObjHighlightClass = $aObject[$sAlias]->GetHilightClass();