Add some HTML in errors thrown by \MetaModel::DBCheckFormat

This commit is contained in:
Pierre Goiffon
2019-12-05 17:56:42 +01:00
parent 344f74f444
commit 470af54acb

View File

@@ -5517,7 +5517,7 @@ abstract class MetaModel
if (!CMDBSource::IsSameFieldTypes($sDBFieldSpec, $sActualFieldSpec))
{
$bToBeChanged = true;
$aErrors[$sClass][$sAttCode][] = "field '$sField' in table '$sTable' has a wrong type: found '$sActualFieldSpec' while expecting '$sDBFieldSpec'";
$aErrors[$sClass][$sAttCode][] = "field '$sField' in table '$sTable' has a wrong type: found <code>$sActualFieldSpec</code> while expecting <code>$sDBFieldSpec</code>";
}
if ($bToBeChanged)
{