From f34f0e43d34d98fbc4508b667e62e34885602500 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Fri, 29 Jun 2012 17:47:55 -0700 Subject: [PATCH] #18724: Publish button would create two versions at a time Work Item: 18724 --HG-- branch : 1.x --- src/Orchard.Web/Core/Contents/Controllers/AdminController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Core/Contents/Controllers/AdminController.cs b/src/Orchard.Web/Core/Contents/Controllers/AdminController.cs index 4bdf8b236..48db80e2e 100644 --- a/src/Orchard.Web/Core/Contents/Controllers/AdminController.cs +++ b/src/Orchard.Web/Core/Contents/Controllers/AdminController.cs @@ -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();