mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-08-20 07:23:59 +08:00
Forced the handler to "publish" the fields of a menu to ensure "Value" is updated in Orchard Projections FieldIndexRecords instead of "LatestValue" only.
This commit is contained in:
parent
3561be6e37
commit
6983d65758
@ -244,8 +244,7 @@ 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.IsPublished())
|
||||
&& !contentItem.TypeDefinition.Settings.GetModel<ContentTypeSettings>().Draftable)
|
||||
_contentManager.Publish(contentItem);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user