From 961de2d5e87b359c06a3e7a8a7b756589588200b Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 10 Mar 2022 23:52:10 +0000 Subject: [PATCH] case 4141 --- source/Plugins/AyaNova.Plugin.V8/V8.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index e1d4001..99ba87f 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -35,7 +35,7 @@ namespace AyaNova.PlugIn.V8 public string PluginVersion { - get { return "7.6.1-beta.1-rc3"; } + get { return "7.6.1-beta.1-rc4"; } } public string About @@ -5861,6 +5861,7 @@ namespace AyaNova.PlugIn.V8 var af = AyaFile.GetItem(i.LT_O_AyaFile.Value); if (af == null) continue; + progress.SubOp("Wikifile: \"" + af.Name + "\" " + AyaBizUtils.FileSizeDisplay((decimal)af.FileSize)); if (IsDuplicatev7v8IdMapItem(i.LT_O_AyaFile.Value, i.LT_O_AyaFile.Display, progress)) continue; @@ -5905,6 +5906,13 @@ namespace AyaNova.PlugIn.V8 } formDataContent.Add(new StringContent(RavenTypeAsString), name: "AttachToAType"); formDataContent.Add(new StringContent(v8Id.ToString()), name: "AttachToObjectId"); + + //user id override + long? attachedByUserId=await Getv7v8IdMapNullOk(i.LT_Common_Label_Creator.Value, RootObjectTypes.User); + if (attachedByUserId == null) attachedByUserId = 1;//use superuser + formDataContent.Add(new StringContent(attachedByUserId.ToString()), name: "OverrideUserId"); + + if (!string.IsNullOrWhiteSpace(ImportTag)) formDataContent.Add(new StringContent(ImportTag), name: "Notes"); formDataContent.Add(new StringContent(dFileData.ToString()), name: "FileData");