mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Fixing Comments creation order
Work Item: 19304 --HG-- branch : 1.x
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user