From 6983d65758e26fbd19c40534a404232797a3e41d Mon Sep 17 00:00:00 2001 From: Andrea Piovanelli Date: Wed, 9 Apr 2025 16:50:50 +0200 Subject: [PATCH] Forced the handler to "publish" the fields of a menu to ensure "Value" is updated in Orchard Projections FieldIndexRecords instead of "LatestValue" only. --- src/Orchard.Web/Core/Navigation/Controllers/AdminController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Orchard.Web/Core/Navigation/Controllers/AdminController.cs b/src/Orchard.Web/Core/Navigation/Controllers/AdminController.cs index 2337598da..efc37c4a8 100644 --- a/src/Orchard.Web/Core/Navigation/Controllers/AdminController.cs +++ b/src/Orchard.Web/Core/Navigation/Controllers/AdminController.cs @@ -244,8 +244,7 @@ namespace Orchard.Core.Navigation.Controllers { public ActionResult EditPOST(int id, string returnUrl) { return EditPOST(id, returnUrl, contentItem => { if (!contentItem.Has() - && !contentItem.TypeDefinition.Settings.GetModel().Draftable - && contentItem.IsPublished()) + && !contentItem.TypeDefinition.Settings.GetModel().Draftable) _contentManager.Publish(contentItem); }); }