N°3914 Fix portal tables getting backoffice markup for enum attributes

This commit is contained in:
Stephen Abello
2021-05-28 11:00:40 +02:00
parent cc4b307bc9
commit 3ae8575c1d

View File

@@ -1345,6 +1345,9 @@ class ObjectController extends BrickController
}
$aAttData['value'] = '<img src="'.$sUrl.'" />';
}
elseif ($oAttDef instanceof AttributeEnum) {
$aAttData['value'] = $oAttDef->GetAsPlainText($oObject->Get($oAttDef->GetCode()));
}
else
{
$aAttData['value'] = $oAttDef->GetAsHTML($oObject->Get($oAttDef->GetCode()));