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