From b6796d2742fb186a4cee99b81e399adaba5b65d0 Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 24 Oct 2019 09:00:56 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B0679=20-=20Database=20inconsistency=20dur?= =?UTF-8?q?ing=20INSERT=20N=C2=B02499?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/dbobject.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/dbobject.class.php b/core/dbobject.class.php index 7eefeb1e4a..938d8aa800 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -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)