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

SVN:2.0.2[3096]
This commit is contained in:
Denis Flaven
2014-03-04 14:00:01 +00:00
parent 1a848fb3cc
commit 2833ef0853
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';
$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)
{