mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user