This commit is contained in:
@@ -288,6 +288,10 @@ namespace AyaNova.PlugIn.V8
|
||||
progress.Op("Erasing AyaNova 8 data");
|
||||
var a = await util.PostAsync("license/permanently-erase-all-data", "\"I understand\"");
|
||||
|
||||
//delay to allow event log to properly show erase as the first operation
|
||||
System.Threading.Thread.Sleep(2000);
|
||||
|
||||
|
||||
//TAGS
|
||||
progress.Op("Compiling tags");
|
||||
if (progress.KeepGoing)
|
||||
@@ -3160,8 +3164,20 @@ namespace AyaNova.PlugIn.V8
|
||||
dynamic d = new JObject();
|
||||
d.formkey = RavenCustomTranslationKeyObjectName;
|
||||
dynamic dtemplate = new JArray();
|
||||
Guid Creator = Guid.Empty;
|
||||
Guid Modifier = Guid.Empty;
|
||||
string Created = string.Empty;
|
||||
string Modified = string.Empty;
|
||||
|
||||
foreach (ObjectCustomField f in ocf)
|
||||
{
|
||||
if (Creator == Guid.Empty)
|
||||
{
|
||||
Creator = f.Creator;
|
||||
Modifier = f.Modifier;
|
||||
Created = f.Created;
|
||||
Modified = f.Modified;
|
||||
}
|
||||
if (f.Visible)
|
||||
{
|
||||
int n = Convert.ToInt32(f.FieldName.Replace("Custom", "")) + 1;//raven custom fields are 1 based, v7 are zero based
|
||||
@@ -3209,10 +3225,15 @@ namespace AyaNova.PlugIn.V8
|
||||
|
||||
//ok, were here because there *are* custom fields available
|
||||
var a = await util.GetAsync("form-custom/" + RavenCustomTranslationKeyObjectName);
|
||||
var RavenFormCustomId = util.IdFromResponse(a);
|
||||
var ctoken = util.CTokenFromResponse(a);
|
||||
d.concurrency = ctoken;
|
||||
await util.PutAsync("form-custom/" + RavenCustomTranslationKeyObjectName, d.ToString());
|
||||
|
||||
//Event log fixup
|
||||
await util.EventLog(util.AyaType.FormCustom, RavenFormCustomId, SafeGetUserMap(Creator), SafeGetUserMap(Modifier), Created, Modified);
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user