Corrected expected form value for Layer.Publish action. Fixes #7696.

This commit is contained in:
Daniel Stolt
2017-05-19 17:54:34 +02:00
parent e298a57b9a
commit 9f80897b91

View File

@@ -286,7 +286,7 @@ namespace Orchard.Widgets.Controllers {
}
[HttpPost, ActionName("EditLayer")]
[FormValueRequired("submit.Save")]
[FormValueRequired("submit.Publish")]
public ActionResult EditLayerSavePOST(int id, string returnUrl) {
if (!IsAuthorizedToManageWidgets())
return new HttpUnauthorizedResult();