This commit is contained in:
@@ -288,6 +288,10 @@ namespace AyaNova.PlugIn.V8
|
|||||||
progress.Op("Erasing AyaNova 8 data");
|
progress.Op("Erasing AyaNova 8 data");
|
||||||
var a = await util.PostAsync("license/permanently-erase-all-data", "\"I understand\"");
|
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
|
//TAGS
|
||||||
progress.Op("Compiling tags");
|
progress.Op("Compiling tags");
|
||||||
if (progress.KeepGoing)
|
if (progress.KeepGoing)
|
||||||
@@ -3160,8 +3164,20 @@ namespace AyaNova.PlugIn.V8
|
|||||||
dynamic d = new JObject();
|
dynamic d = new JObject();
|
||||||
d.formkey = RavenCustomTranslationKeyObjectName;
|
d.formkey = RavenCustomTranslationKeyObjectName;
|
||||||
dynamic dtemplate = new JArray();
|
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)
|
foreach (ObjectCustomField f in ocf)
|
||||||
{
|
{
|
||||||
|
if (Creator == Guid.Empty)
|
||||||
|
{
|
||||||
|
Creator = f.Creator;
|
||||||
|
Modifier = f.Modifier;
|
||||||
|
Created = f.Created;
|
||||||
|
Modified = f.Modified;
|
||||||
|
}
|
||||||
if (f.Visible)
|
if (f.Visible)
|
||||||
{
|
{
|
||||||
int n = Convert.ToInt32(f.FieldName.Replace("Custom", "")) + 1;//raven custom fields are 1 based, v7 are zero based
|
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
|
//ok, were here because there *are* custom fields available
|
||||||
var a = await util.GetAsync("form-custom/" + RavenCustomTranslationKeyObjectName);
|
var a = await util.GetAsync("form-custom/" + RavenCustomTranslationKeyObjectName);
|
||||||
|
var RavenFormCustomId = util.IdFromResponse(a);
|
||||||
var ctoken = util.CTokenFromResponse(a);
|
var ctoken = util.CTokenFromResponse(a);
|
||||||
d.concurrency = ctoken;
|
d.concurrency = ctoken;
|
||||||
await util.PutAsync("form-custom/" + RavenCustomTranslationKeyObjectName, d.ToString());
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user