mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-24 16:53:10 +08:00
Fixing Navigation AdminController so QueryLinks can be saved
This commit is contained in:
@@ -231,10 +231,12 @@ namespace Orchard.Core.Navigation.Controllers {
|
|||||||
_contentManager.Create(contentItem);
|
_contentManager.Create(contentItem);
|
||||||
|
|
||||||
menuPart.Menu = menu;
|
menuPart.Menu = menu;
|
||||||
menuPart.MenuPosition = Position.GetNext(_navigationManager.BuildMenu(menu));
|
|
||||||
|
|
||||||
var model = _contentManager.UpdateEditor(contentItem, this);
|
var model = _contentManager.UpdateEditor(contentItem, this);
|
||||||
|
|
||||||
|
// This needs to be called after UpdateEditor for INavigationFilters not to operate with stale data.
|
||||||
|
menuPart.MenuPosition = Position.GetNext(_navigationManager.BuildMenu(menu));
|
||||||
|
|
||||||
if (!ModelState.IsValid) {
|
if (!ModelState.IsValid) {
|
||||||
_transactionManager.Cancel();
|
_transactionManager.Cancel();
|
||||||
return View(model);
|
return View(model);
|
||||||
|
|||||||
Reference in New Issue
Block a user