mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +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:
@@ -43,9 +43,7 @@ class BenchmarkDataCreation
|
||||
var $m_oChange;
|
||||
public function __construct()
|
||||
{
|
||||
$this->m_oChange = MetaModel::NewObject("CMDBChange");
|
||||
$this->m_oChange->Set("date", time());
|
||||
$this->m_oChange->Set("userinfo", "Benchmark setup");
|
||||
CMDBObject::SetTrackInfo('Benchmark setup');
|
||||
}
|
||||
|
||||
public function PlanStructure($iPlannedContacts, $iPlannedContracts)
|
||||
@@ -147,7 +145,6 @@ class BenchmarkDataCreation
|
||||
$oMyObject->Set($sProp, $value);
|
||||
}
|
||||
|
||||
$oMyObject::SetCurrentChange($this->m_oChange);
|
||||
$iId = $oMyObject->DBInsertNoReload();
|
||||
|
||||
$sClassId = "$sClass ($sClassDesc)";
|
||||
|
||||
Reference in New Issue
Block a user