From 4a6daa9ffa448d1a9f662bc5ad4ae42e9e5cd9f0 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Fri, 23 Aug 2013 17:07:49 -0700 Subject: [PATCH] Fix exception when comments are used in Workflows --- .../Modules/Orchard.Comments/Controllers/CommentController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Controllers/CommentController.cs b/src/Orchard.Web/Modules/Orchard.Comments/Controllers/CommentController.cs index 66e530ba1..bcafdb5ee 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Controllers/CommentController.cs +++ b/src/Orchard.Web/Modules/Orchard.Comments/Controllers/CommentController.cs @@ -30,7 +30,8 @@ namespace Orchard.Comments.Controllers { return this.RedirectLocal(returnUrl, "~/"); var comment = Services.ContentManager.New("Comment"); - + Services.ContentManager.Create(comment); + var editorShape = Services.ContentManager.UpdateEditor(comment, this);