N°2614 Fix datasynchro error when running synchro_import.php

This commit is contained in:
Pierre Goiffon
2019-12-04 11:08:15 +01:00
parent 1530b3f2ca
commit 1877cb5e93

View File

@@ -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);