mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-24 18:25:04 +08:00
Corrected expected form value for Layer.Publish action. Fixes #7696.
This commit is contained in:
@@ -286,7 +286,7 @@ namespace Orchard.Widgets.Controllers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost, ActionName("EditLayer")]
|
[HttpPost, ActionName("EditLayer")]
|
||||||
[FormValueRequired("submit.Save")]
|
[FormValueRequired("submit.Publish")]
|
||||||
public ActionResult EditLayerSavePOST(int id, string returnUrl) {
|
public ActionResult EditLayerSavePOST(int id, string returnUrl) {
|
||||||
if (!IsAuthorizedToManageWidgets())
|
if (!IsAuthorizedToManageWidgets())
|
||||||
return new HttpUnauthorizedResult();
|
return new HttpUnauthorizedResult();
|
||||||
|
|||||||
Reference in New Issue
Block a user