mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 13:51:22 +08:00
Fixing that saving a menu item shouldn't publish it if it's unpublished
This commit is contained in:
parent
2c3fe26900
commit
3ec2daa9d6
@ -244,7 +244,8 @@ namespace Orchard.Core.Navigation.Controllers {
|
||||
public ActionResult EditPOST(int id, string returnUrl) {
|
||||
return EditPOST(id, returnUrl, contentItem => {
|
||||
if (!contentItem.Has<IPublishingControlAspect>()
|
||||
&& !contentItem.TypeDefinition.Settings.GetModel<ContentTypeSettings>().Draftable)
|
||||
&& !contentItem.TypeDefinition.Settings.GetModel<ContentTypeSettings>().Draftable
|
||||
&& contentItem.IsPublished())
|
||||
_contentManager.Publish(contentItem);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user