Generalized the option tracking_level to any kind of attributes. Defaults to 'all', can be set to 'none' to disable the change tracking on a single attribute (LinkSets still have the same allowed values: none, list, details and all).

SVN:trunk[2863]
This commit is contained in:
Romain Quetiez
2013-09-25 09:47:50 +00:00
parent 7d87aad0bb
commit 898ee016c9
3 changed files with 36 additions and 16 deletions

View File

@@ -189,8 +189,9 @@ abstract class CMDBObject extends DBObject
foreach ($aValues as $sAttCode=> $value)
{
$oAttDef = MetaModel::GetAttributeDef(get_class($this), $sAttCode);
if ($oAttDef->IsExternalField()) continue; // #@# temporary
if ($oAttDef->IsLinkSet()) continue; // #@# temporary
if ($oAttDef->IsExternalField()) continue;
if ($oAttDef->IsLinkSet()) continue;
if ($oAttDef->GetTrackingLevel() == TRACKING_NONE) continue;
if (array_key_exists($sAttCode, $aOrigValues))
{