mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-24 01:49:12 +08:00
Corrected expected form value for Blog.Publish action. Fixes #7698.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user