From 3ec2daa9d6c3e6e3b106600eea389f929d152d59 Mon Sep 17 00:00:00 2001 From: Benedek Farkas Date: Wed, 20 Nov 2024 15:54:19 +0100 Subject: [PATCH] Fixing that saving a menu item shouldn't publish it if it's unpublished --- src/Orchard.Web/Core/Navigation/Controllers/AdminController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Orchard.Web/Core/Navigation/Controllers/AdminController.cs b/src/Orchard.Web/Core/Navigation/Controllers/AdminController.cs index cd3f856ef..e34c6e759 100644 --- a/src/Orchard.Web/Core/Navigation/Controllers/AdminController.cs +++ b/src/Orchard.Web/Core/Navigation/Controllers/AdminController.cs @@ -244,7 +244,8 @@ 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.TypeDefinition.Settings.GetModel().Draftable + && contentItem.IsPublished()) _contentManager.Publish(contentItem); }); }