mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
🌐 Improve DBObject::CheckValue and CheckConsistency error messages (#288)
Now contains attribute code and value
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user