mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +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);
|
var editorShape = Services.ContentManager.UpdateEditor(comment, this);
|
||||||
|
|
||||||
Services.ContentManager.Create(comment);
|
|
||||||
|
|
||||||
if (ModelState.IsValid) {
|
if (ModelState.IsValid) {
|
||||||
|
Services.ContentManager.Create(comment);
|
||||||
|
|
||||||
var commentPart = comment.As<CommentPart>();
|
var commentPart = comment.As<CommentPart>();
|
||||||
|
|
||||||
// ensure the comments are not closed on the container, as the html could have been tampered manually
|
// ensure the comments are not closed on the container, as the html could have been tampered manually
|
||||||
|
Reference in New Issue
Block a user