From e641ec7815d7dde9050bd8627f01d2d2c4eb8b4d Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 30 May 2016 12:05:49 +0200 Subject: [PATCH] Revert "[FIX] website_forum: notification of comments like answers" This reverts commit e32ba845de73a251fba4f12af45c880898cb4344. This commit is wrong as it had an undifined variable and was losing the content of the comment anyway. Fixes #12213 --- addons/website_forum/controllers/main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index ccbbd17ee1c..bc79ec52ebc 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -336,10 +336,8 @@ class WebsiteForum(http.Controller): question = post.parent_id if post.parent_id else post if kwargs.get('comment') and post.forum_id.id == forum.id: # TDE FIXME: check that post_id is the question or one of its answers - body = _('

A new answer for %s has been posted. Click here to access the post.

') % \ - (question.name, base_url, slug(question.forum_id), slug(question)) post.with_context(mail_create_nosubscribe=True).message_post( - body=body, + body=kwargs.get('comment'), message_type='comment', subtype='mt_comment') return werkzeug.utils.redirect("/forum/%s/question/%s" % (slug(forum), slug(question)))