浏览代码

#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 9 年之前
父节点
当前提交
daf4f2445f
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
 					}
 				}
 			}