N°4988 - History API : change consumers (iTop core)

This commit is contained in:
acognet
2022-06-27 23:44:23 +02:00
parent eb8ea0fbd4
commit 01c76f19ed
2 changed files with 3 additions and 2 deletions

View File

@@ -356,7 +356,8 @@ try {
if (!$bSimulate)
{
// We're doing it for real, let's create a change
CMDBObject::SetCurrentChangeFromParams('$sUserString', CMDBChangeOrigin::CSV_INTERACTIVE);
$sUserString = CMDBChange::GetCurrentUserName().' (CSV)';
CMDBObject::SetCurrentChangeFromParams($sUserString, CMDBChangeOrigin::CSV_INTERACTIVE);
$oMyChange = CMDBObject::GetCurrentChange();
}
CMDBObject::SetTrackOrigin('csv-interactive');