Data synchro: added notifications in case of error + fixed a bug in the error reporting (reconciliation on null values, last error was not recorded)

SVN:trunk[1226]
This commit is contained in:
Romain Quetiez
2011-04-22 13:54:16 +00:00
parent e42b0513a0
commit 60b2162d84
2 changed files with 104 additions and 5 deletions

View File

@@ -353,6 +353,12 @@ abstract class DBObject
$this->RegisterAsDirty();
}
public function GetLabel($sAttCode)
{
$oAttDef = MetaModel::GetAttributeDef(get_class($this), $sAttCode);
return $oAttDef->GetLabel();
}
public function Get($sAttCode)
{
if (!array_key_exists($sAttCode, MetaModel::ListAttributeDefs(get_class($this))))