diff --git a/src/Orchard.Web/Modules/Orchard.Widgets/Controllers/AdminController.cs b/src/Orchard.Web/Modules/Orchard.Widgets/Controllers/AdminController.cs index 6912d26d9..b2b146f07 100644 --- a/src/Orchard.Web/Modules/Orchard.Widgets/Controllers/AdminController.cs +++ b/src/Orchard.Web/Modules/Orchard.Widgets/Controllers/AdminController.cs @@ -318,7 +318,7 @@ namespace Orchard.Widgets.Controllers { [HttpPost, ActionName("EditWidget")] [FormValueRequired("submit.Save")] - public ActionResult EditWidgetSavePOST(int id, int layerId, string returnUrl) { + public ActionResult EditWidgetSavePOST(int id, string returnUrl) { if (!IsAuthorizedToManageWidgets()) return new HttpUnauthorizedResult(); @@ -329,7 +329,7 @@ namespace Orchard.Widgets.Controllers { try { var model = Services.ContentManager.UpdateEditor(widgetPart, this); // override the CommonPart's persisting of the current container - widgetPart.LayerPart = _widgetsService.GetLayer(layerId); + widgetPart.LayerPart = _widgetsService.GetLayer(widgetPart.LayerId); if (!ModelState.IsValid) { Services.TransactionManager.Cancel(); // Casting to avoid invalid (under medium trust) reflection over the protected View method and force a static invocation.