#887 short term fix for preventing ToArgs to alter the content of an object...

SVN:trunk[3095]
This commit is contained in:
Denis Flaven
2014-03-04 13:58:28 +00:00
parent 404f6772fd
commit 2574a0c8a4
2 changed files with 2 additions and 2 deletions

View File

@@ -2051,7 +2051,7 @@ abstract class DBObject
{ {
$sRemoteName = $oAttDef->IsIndirect() ? $oAttDef->GetExtKeyToRemote().'_friendlyname' : 'friendlyname'; $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'); $iLimit = MetaModel::GetConfig()->Get('max_linkset_output');
if ($iLimit > 0) if ($iLimit > 0)
{ {

View File

@@ -418,7 +418,7 @@ class DBObjectSet
CMDBSource::FreeResult($resQuery); CMDBSource::FreeResult($resQuery);
$this->m_iCount = $aRow['COUNT']; $this->m_iCount = $aRow['COUNT'];
} }
return $this->m_iCount; return $this->m_iCount; // WARNING this value can be wrong, see Trac #887
} }
} }