git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3095 a333f486-631f-4898-b8df-5754b55c2be0
@@ -2051,7 +2051,7 @@ abstract class DBObject
{
$sRemoteName = $oAttDef->IsIndirect() ? $oAttDef->GetExtKeyToRemote().'_friendlyname' : 'friendlyname';
- $oLinkSet = $this->Get($sAttCode);
+ $oLinkSet = clone $this->Get($sAttCode); // Workaround/Safety net for Trac #887
$iLimit = MetaModel::GetConfig()->Get('max_linkset_output');
if ($iLimit > 0)
@@ -418,7 +418,7 @@ class DBObjectSet
CMDBSource::FreeResult($resQuery);
$this->m_iCount = $aRow['COUNT'];
}
- return $this->m_iCount;
+ return $this->m_iCount; // WARNING this value can be wrong, see Trac #887