Pārlūkot izejas kodu

Fix for a regression introduced by [3149]

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3153 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 gadi atpakaļ
vecāks
revīzija
d438218165
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      core/dbobject.class.php

+ 1 - 1
core/dbobject.class.php

@@ -306,7 +306,6 @@ abstract class DBObject
 			// Ignore it - this attribute is set upon object creation and that's it
 			return;
 		}
-		$this->m_aModifiedAtt[$sAttCode] = true;
 		
 		$oAttDef = MetaModel::GetAttributeDef(get_class($this), $sAttCode);
 		if ($this->m_bIsInDB && !$this->m_bFullyLoaded && !$this->m_bDirty)
@@ -375,6 +374,7 @@ abstract class DBObject
 		$realvalue = $oAttDef->MakeRealValue($value, $this);
 
 		$this->m_aCurrValues[$sAttCode] = $realvalue;
+		$this->m_aModifiedAtt[$sAttCode] = true;
 
 		// The object has changed, reset caches
 		$this->m_bCheckStatus = null;