This commit is contained in:
2020-05-03 14:45:57 +00:00
parent c678d4636c
commit 8d2267366f

View File

@@ -416,14 +416,6 @@ namespace AyaNova.PlugIn.V8
} }
SetTags(d, tags); SetTags(d, tags);
// wiki
var hasWiki = WikiPage.HasWiki(c.ID);
if (hasWiki)
{
// await ExportAttachments(ObjectTID, progress);
d.wiki = GetWikiContent(ObjectTID);
}
//Custom fields? //Custom fields?
if (ShouldExportCustom) if (ShouldExportCustom)
d.customFields = CustomFieldData(c, DateCustomFields); d.customFields = CustomFieldData(c, DateCustomFields);
@@ -450,17 +442,31 @@ namespace AyaNova.PlugIn.V8
//Attachments / FILES //Attachments / FILES
await ExportAttachments(ObjectTID, progress); await ExportAttachments(ObjectTID, progress);
//-----
bool repost = false;
d = rMainObject.ObjectResponse["data"];
// wiki
if (WikiPage.HasWiki(c.ID))
{
// await ExportAttachments(ObjectTID, progress);
d.wiki = GetWikiContent(ObjectTID);
repost = true;
}
//docs //docs
string NonFileUrls = await ExportDocs(ObjectTID, c.Docs, progress); string NonFileUrls = await ExportDocs(ObjectTID, c.Docs, progress);
if (!string.IsNullOrEmpty(NonFileUrls)) if (!string.IsNullOrEmpty(NonFileUrls))
{ {
//need to repost the user with the notes modified //need to repost the user with the notes modified
d = rMainObject.ObjectResponse["data"];
d.login = null; d.login = null;
d.password = null; d.password = null;
d.notes = NonFileUrls + "\n-----------------\n" + d.notes; d.notes = NonFileUrls + "\n-----------------\n" + d.notes;
await util.PutAsync("User/" + RavenId.ToString(), d.ToString()); repost = true;
} }
if (repost)
await util.PutAsync("User/" + RavenId.ToString(), d.ToString());
//-----
} }
@@ -956,10 +962,10 @@ namespace AyaNova.PlugIn.V8
var DateCustomFields = await ExportCustomFieldSchema(ocf, ObjectTypeName, ObjectTypeName); var DateCustomFields = await ExportCustomFieldSchema(ocf, ObjectTypeName, ObjectTypeName);
//Step 2: export the objects //Step 2: export the objects
PickListAutoComplete pl = PickListAutoComplete.GetList("**", "unit"); UnitPickList pl = UnitPickList.GetListOfAll();
progress.Append("Exporting " + pl.Count.ToString() + " " + ObjectTypeName + "s"); progress.Append("Exporting " + pl.Count.ToString() + " " + ObjectTypeName + "s");
foreach (PickListAutoComplete.PickListAutoCompleteInfo i in pl) foreach (UnitPickList.UnitPickListInfo i in pl)
{ {
if (!progress.KeepGoing) return; if (!progress.KeepGoing) return;
List<string> tags = new List<string>(); List<string> tags = new List<string>();