From 1877cb5e9324196213f2bf43f9af963d323ef549 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Wed, 4 Dec 2019 11:08:15 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B02614=20Fix=20datasynchro=20error=20when?= =?UTF-8?q?=20running=20synchro=5Fimport.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- synchro/synchrodatasource.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synchro/synchrodatasource.class.inc.php b/synchro/synchrodatasource.class.inc.php index 5c290e577..8a1826a1f 100644 --- a/synchro/synchrodatasource.class.inc.php +++ b/synchro/synchrodatasource.class.inc.php @@ -3001,7 +3001,7 @@ class SynchroExecution $this->m_oChange->Set('userinfo', $sUserString.' '.Dict::S('Core:SyncDataExchangeComment')); $this->m_oChange->Set('origin', 'synchro-data-source'); $this->m_oChange->DBInsert(); - CMDBObject::SetCurrentChange($oChange); + CMDBObject::SetCurrentChange($this->m_oChange); // Start logging this execution (stats + protection against reentrance) // @@ -3378,7 +3378,7 @@ class SynchroExecution self::$m_oCurrentTask = $this->m_oDataSource; $this->m_oStatLog = $oLog; $this->m_oChange = $oChange; - CMDBObject::SetCurrentChange($oChange); + CMDBObject::SetCurrentChange($this->m_oChange); // Prepare internal structures (not the first pass) $this->PrepareProcessing(false);