This commit is contained in:
2021-01-02 20:24:06 +00:00
parent 70d2b90598
commit 44311b5f64

View File

@@ -1700,7 +1700,8 @@ namespace AyaNova.PlugIn.V8
Unit c = Unit.GetItem(i.ID);
if (c.ParentID == Guid.Empty && c.ReplacedByUnitID == Guid.Empty) continue;
var ObjectTID = new TypeAndID(RootObjectTypes.Unit, c.ID);
var a = await util.GetAsync("unit/" + Getv7v8IdMap(c.ID, "Unit for parent / replaced by unit step 2 unit import").ToString());
long ThisUnitRavenId= Getv7v8IdMap(c.ID, "Unit for parent / replaced by unit step 2 unit import");
var a = await util.GetAsync("unit/" + ThisUnitRavenId.ToString());
dynamic d = a.ObjectResponse["data"];
progress.Op(ObjectTypeName + " " + d.serial);
@@ -1710,7 +1711,7 @@ namespace AyaNova.PlugIn.V8
await util.PutAsync("unit", d.ToString());
//-----
//Event log fixup
await util.EventLog(util.AyaType.Unit, d.id, SafeGetUserMap(c.Creator), SafeGetUserMap(c.Modifier), c.Created, c.Modified);
await util.EventLog(util.AyaType.Unit, ThisUnitRavenId, SafeGetUserMap(c.Creator), SafeGetUserMap(c.Modifier), c.Created, c.Modified);
}
}
#endregion Units