mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 11:44:41 +08:00
#18724: Publish button would create two versions at a time
Work Item: 18724 --HG-- branch : 1.x
This commit is contained in:
@@ -275,7 +275,7 @@ namespace Orchard.Core.Contents.Controllers {
|
|||||||
[HttpPost, ActionName("Edit")]
|
[HttpPost, ActionName("Edit")]
|
||||||
[FormValueRequired("submit.Publish")]
|
[FormValueRequired("submit.Publish")]
|
||||||
public ActionResult EditAndPublishPOST(int id, string returnUrl) {
|
public ActionResult EditAndPublishPOST(int id, string returnUrl) {
|
||||||
var content = _contentManager.Get(id, VersionOptions.DraftRequired);
|
var content = _contentManager.Get(id, VersionOptions.Latest);
|
||||||
|
|
||||||
if (content == null)
|
if (content == null)
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
|
|||||||
Reference in New Issue
Block a user