From bf1845085098e8c5977a6f19637155511a77c588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alan=20P=C5=82=C3=B3cieniak?= Date: Fri, 8 Sep 2023 08:59:42 +0200 Subject: [PATCH] #1314 | Executing Publish-Item against Experence Edge throws an error --- src/Spe.Sitecore8/Services/SpePublishManager.cs | 1 + src/Spe.Sitecore92/Services/SpePublishManager.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Spe.Sitecore8/Services/SpePublishManager.cs b/src/Spe.Sitecore8/Services/SpePublishManager.cs index 1abc7f208..c4bb42e69 100644 --- a/src/Spe.Sitecore8/Services/SpePublishManager.cs +++ b/src/Spe.Sitecore8/Services/SpePublishManager.cs @@ -18,6 +18,7 @@ public PublishResult PublishSync(PublishOptions options) { var publishContext = PublishManager.CreatePublishContext(options); publishContext.Languages = new[] { options.Language }; + publishContext.Job = Sitecore.Context.Job; return PublishPipeline.Run(publishContext); } diff --git a/src/Spe.Sitecore92/Services/SpePublishManager.cs b/src/Spe.Sitecore92/Services/SpePublishManager.cs index 1abc7f208..c4bb42e69 100644 --- a/src/Spe.Sitecore92/Services/SpePublishManager.cs +++ b/src/Spe.Sitecore92/Services/SpePublishManager.cs @@ -18,6 +18,7 @@ public PublishResult PublishSync(PublishOptions options) { var publishContext = PublishManager.CreatePublishContext(options); publishContext.Languages = new[] { options.Language }; + publishContext.Job = Sitecore.Context.Job; return PublishPipeline.Run(publishContext); }