🌐 Improve DBObject::CheckValue and CheckConsistency error messages (#288)

Now contains attribute code and value
This commit is contained in:
Thomas Casteleyn
2022-05-17 17:01:41 +02:00
committed by GitHub
parent 46713236c4
commit 3d04cf1cd6
5 changed files with 12 additions and 11 deletions

View File

@@ -1455,7 +1455,7 @@ EOF
if ( ($iFlags & OPT_ATT_SLAVE) && ($paramValue != $oObj->Get($sAttCode)) )
{
$oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode);
$aErrors[] = Dict::Format('UI:AttemptingToSetASlaveAttribute_Name', $oAttDef->GetLabel());
$aErrors[] = Dict::Format('UI:AttemptingToSetASlaveAttribute_Name', $oAttDef->GetLabel(), $sAttCode);
unset($aExpectedAttributes[$sAttCode]);
}
}