N°2163 DB*Tracked methods : modifications after review with Romain

Previous commit : 24eb82d1
Use \CMDBObject::SetTrackInfo
Move \CMDBObject::SetCurrentChange calls at the top most level of the stacks
Restore old behaviors that were removed in previous commit
This commit is contained in:
Pierre Goiffon
2019-11-25 09:41:20 +01:00
parent 2f2d9547b7
commit 0ee77d8c88
13 changed files with 39 additions and 76 deletions

View File

@@ -3001,6 +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);
// Start logging this execution (stats + protection against reentrance)
//
@@ -3377,6 +3378,7 @@ class SynchroExecution
self::$m_oCurrentTask = $this->m_oDataSource;
$this->m_oStatLog = $oLog;
$this->m_oChange = $oChange;
CMDBObject::SetCurrentChange($oChange);
// Prepare internal structures (not the first pass)
$this->PrepareProcessing(false);