mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
Remove incorrect line in "IndexPOST" action
The navigation screen doesn't show any part other than "MenuPart". Calling "UpdateEditorModel" on all the content items in the POST action causes data loss (slug, title, tags, etc..) when clicking the "Update All" button. --HG-- branch : dev
This commit is contained in:
@@ -52,8 +52,6 @@ namespace Orchard.Core.Navigation.Controllers {
|
||||
menuPart.MenuPosition = menuItemEntry.MenuItem.Position;
|
||||
if (menuPart.Is<MenuItemPart>())
|
||||
menuPart.As<MenuItemPart>().Url = menuItemEntry.MenuItem.Url;
|
||||
|
||||
_services.ContentManager.UpdateEditorModel(menuPart, this);
|
||||
}
|
||||
|
||||
return RedirectToAction("Index");
|
||||
|
Reference in New Issue
Block a user