Fixing Comments creation order

Work Item: 19304

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2013-03-06 13:08:42 -08:00
parent 453664d621
commit 874bd7df9d

View File

@@ -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<CommentPart>();
// ensure the comments are not closed on the container, as the html could have been tampered manually