mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +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:
@@ -84,11 +84,8 @@ function CreateTicket($sSenderEmail, $sSubject, $sBody)
|
||||
$oTicket->Set('workgroup_id', DEFAULT_WORKGROUP_ID); // Same as above...
|
||||
|
||||
// Record the change information about the object
|
||||
$oMyChange = MetaModel::NewObject("CMDBChange");
|
||||
$oMyChange->Set("date", time());
|
||||
$sUserString = $oContact->GetName().', submitted by email';
|
||||
$oMyChange->Set("userinfo", $sUserString);
|
||||
$oTicket::SetCurrentChange($oMyChange);
|
||||
CMDBObject::SetTrackInfo($sUserString);
|
||||
$oTicket->DBInsert();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user