Corrected expected form value for Blog.Publish action. Fixes #7698.

This commit is contained in:
Daniel Stolt
2017-05-19 17:45:25 +02:00
parent 1b2df0cdeb
commit e7e40cdfbc

View File

@@ -101,14 +101,14 @@ namespace Orchard.Blogs.Controllers {
return HttpNotFound();
_blogService.Delete(blog);
Services.Notifier.Success(T("Blog deleted"));
Services.Notifier.Success(T("Blog was deleted."));
return Redirect(Url.BlogsForAdmin());
}
[HttpPost, ActionName("Edit")]
[FormValueRequired("submit.Save")]
[FormValueRequired("submit.Publish")]
public ActionResult EditPOST(int blogId) {
var blog = _blogService.Get(blogId, VersionOptions.DraftRequired);
@@ -125,7 +125,7 @@ namespace Orchard.Blogs.Controllers {
}
_contentManager.Publish(blog);
Services.Notifier.Success(T("Blog information updated"));
Services.Notifier.Success(T("Blog properties were updated."));
return Redirect(Url.BlogsForAdmin());
}
@@ -142,7 +142,7 @@ namespace Orchard.Blogs.Controllers {
_blogService.Delete(blog);
Services.Notifier.Success(T("Blog was successfully deleted"));
Services.Notifier.Success(T("Blog was successfully deleted."));
return Redirect(Url.BlogsForAdmin());
}