Fixed bug on Update / WriteLinks

SVN:trunk[139]
This commit is contained in:
Romain Quetiez
2009-09-10 16:20:35 +00:00
parent 5083246f92
commit a2f2cb2d22

View File

@@ -552,7 +552,10 @@ abstract class DBObject
while ($oLinkedObject = $oLinks->Fetch())
{
$oLinkedObject->Set($oAttDef->GetExtKeyToMe(), $this->m_iKey);
$oLinkedObject->DBWrite();
if ($oLinkedObject->IsModified())
{
$oLinkedObject->DBWrite();
}
}
// Delete the objects that were initialy present and disappeared from the list