mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 19:44:02 +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")]
|
||||
[FormValueRequired("submit.Publish")]
|
||||
public ActionResult EditAndPublishPOST(int id, string returnUrl) {
|
||||
var content = _contentManager.Get(id, VersionOptions.DraftRequired);
|
||||
var content = _contentManager.Get(id, VersionOptions.Latest);
|
||||
|
||||
if (content == null)
|
||||
return HttpNotFound();
|
||||
|
||||
Reference in New Issue
Block a user