This commit is contained in:
@@ -1835,6 +1835,8 @@ namespace AyaNova.PlugIn.V8
|
||||
}
|
||||
d.active = c.Active;
|
||||
d.notes = c.Notes;
|
||||
TagFromv7Guid(c.PartCategoryID, tags);
|
||||
|
||||
SetTags(d, tags);
|
||||
|
||||
//Custom fields?
|
||||
@@ -4868,7 +4870,7 @@ namespace AyaNova.PlugIn.V8
|
||||
d.login = util.RandomString();
|
||||
d.password = util.RandomString();
|
||||
d.notes = "This record created by V8Migrate utility to contain the AyaNova 7 Global WIKI which has no corresponding place in v8";
|
||||
var r= await util.PostAsync("user", d);
|
||||
var r = await util.PostAsync("user", d);
|
||||
long RavenId = util.IdFromResponse(r);
|
||||
Addv7v8IdMap(Address.GlobalAddressID, RavenId);
|
||||
//FILES / ATTACHMENTS FOR WIKI
|
||||
@@ -4884,9 +4886,9 @@ namespace AyaNova.PlugIn.V8
|
||||
{
|
||||
if (WikiPage.HasWiki(i.LT_Region_Label_Name.Value))
|
||||
{
|
||||
progress.SubOp("Region "+i.LT_Region_Label_Name.Display+" WIKI exists, migrating to special User account");
|
||||
progress.SubOp("Region " + i.LT_Region_Label_Name.Display + " WIKI exists, migrating to special User account");
|
||||
dynamic d = new JObject();
|
||||
d.name = "zV8Migrate REGION_WIKI_REPOSITORY_"+i.LT_Region_Label_Name.Display;
|
||||
d.name = "zV8Migrate REGION_WIKI_REPOSITORY_" + i.LT_Region_Label_Name.Display;
|
||||
d.active = false;
|
||||
d.userType = 2;
|
||||
d.roles = 0;
|
||||
@@ -4897,7 +4899,7 @@ namespace AyaNova.PlugIn.V8
|
||||
long RavenId = util.IdFromResponse(r);
|
||||
Addv7v8IdMap(i.LT_Region_Label_Name.Value, RavenId);
|
||||
//FILES / ATTACHMENTS FOR WIKI
|
||||
var tid=new TypeAndID(RootObjectTypes.Region, i.LT_Region_Label_Name.Value);
|
||||
var tid = new TypeAndID(RootObjectTypes.Region, i.LT_Region_Label_Name.Value);
|
||||
await ExportAttachments(tid, progress, util.AyaType.User);
|
||||
d = r.ObjectResponse["data"];
|
||||
d.wiki = await GetWikiContent(tid);
|
||||
@@ -5919,7 +5921,7 @@ namespace AyaNova.PlugIn.V8
|
||||
{
|
||||
//this is image links to file attachments
|
||||
//if there is no match then chuck it, it's not critically important and already was missing in v7 anyway
|
||||
var RavenId = await Getv7v8IdMapNullOk(new Guid(m.Groups["guid"].Value), tid.RootObjectType, false,true);//Map[new Guid(m.Groups["guid"].Value)];
|
||||
var RavenId = await Getv7v8IdMapNullOk(new Guid(m.Groups["guid"].Value), tid.RootObjectType, false, true);//Map[new Guid(m.Groups["guid"].Value)];
|
||||
if (RavenId != null)
|
||||
content = content.Replace(m.Value, "<img src=\"" + "[ATTACH:" + RavenId.ToString() + "]" + "\">");
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user