mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 23:32:17 +02:00
N°3914 Fix portal tables getting backoffice markup for enum attributes
This commit is contained in:
@@ -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()));
|
||||||
|
|||||||
Reference in New Issue
Block a user