From 874bd7df9d0948420798a8393dd053421e8f90ef Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Wed, 6 Mar 2013 13:08:42 -0800 Subject: [PATCH] Fixing Comments creation order Work Item: 19304 --HG-- branch : 1.x --- .../Modules/Orchard.Comments/Controllers/CommentController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Controllers/CommentController.cs b/src/Orchard.Web/Modules/Orchard.Comments/Controllers/CommentController.cs index a338025eb..96f6f095d 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Controllers/CommentController.cs +++ b/src/Orchard.Web/Modules/Orchard.Comments/Controllers/CommentController.cs @@ -33,9 +33,9 @@ namespace Orchard.Comments.Controllers { var editorShape = Services.ContentManager.UpdateEditor(comment, this); - Services.ContentManager.Create(comment); - if (ModelState.IsValid) { + Services.ContentManager.Create(comment); + var commentPart = comment.As(); // ensure the comments are not closed on the container, as the html could have been tampered manually