N°679 - Database inconsistency during INSERT

N°2499
This commit is contained in:
Eric
2019-10-24 09:00:56 +02:00
parent 047983cb91
commit b6796d2742

View File

@@ -2735,6 +2735,11 @@ abstract class DBObject implements iDisplay
$this->DBInsertSingleTable($sParentClass);
}
$this->OnObjectKeyReady();
$this->DBWriteLinks();
$this->WriteExternalAttributes();
if ($bIsTransactionEnabled)
{
CMDBSource::Query('COMMIT');
@@ -2749,11 +2754,6 @@ abstract class DBObject implements iDisplay
throw $e;
}
$this->OnObjectKeyReady();
$this->DBWriteLinks();
$this->WriteExternalAttributes();
$this->m_bIsInDB = true;
$this->m_bDirty = false;
foreach ($this->m_aCurrValues as $sAttCode => $value)