Ver Fonte

#1235 Internal: DBObject API - external fields not up to date after changing the external key (though they seem to be in sync when inspecting the internal values, Get() does not return the expected value).

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4165 a333f486-631f-4898-b8df-5754b55c2be0
romainq há 9 anos atrás
pai
commit
daf4f2445f
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      core/dbobject.class.php

+ 1 - 0
core/dbobject.class.php

@@ -383,6 +383,7 @@ abstract class DBObject implements iDisplay
 					if (($oDef->IsExternalField() || ($oDef instanceof AttributeFriendlyName)) && ($oDef->GetKeyAttCode() == $sAttCode))
 					{
 						$this->m_aCurrValues[$sCode] = $value->Get($oDef->GetExtAttCode());
+						$this->m_aLoadedAtt[$sCode] = true;
 					}
 				}
 			}