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
committed by Eric
parent b74b43727d
commit c173535104

View File

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