mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
#887 short term fix for preventing ToArgs to alter the content of an object...
SVN:trunk[3095]
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user