Browse Source

#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 năm trước cách đây
mục cha
commit
daf4f2445f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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;
 					}
 				}
 			}