Fix for Issue 19252

--HG--
branch : 1.x
This commit is contained in:
Michael Yates@MichaelNotebook
2012-11-15 09:08:14 +11:00
parent b117e237c7
commit bacf3176af

View File

@@ -165,7 +165,7 @@ namespace Orchard.Widgets.Controllers {
}
[HttpPost, ActionName("AddWidget")]
public ActionResult AddWidgetPOST(int layerId, string widgetType, string returnUrl) {
public ActionResult AddWidgetPOST([Bind(Prefix = "WidgetPart.LayerId")] int layerId, string widgetType, string returnUrl) {
if (!IsAuthorizedToManageWidgets())
return new HttpUnauthorizedResult();