diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-05-30 12:05:49 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-05-30 12:05:49 +0200 |
| commit | e641ec7815d7dde9050bd8627f01d2d2c4eb8b4d (patch) | |
| tree | 89e4503d49fb64df1d39b2fd042f248428694f74 | |
| parent | be91fa4c636b6a6216952e386f9872f6960d8429 (diff) | |
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
| -rw-r--r-- | addons/website_forum/controllers/main.py | 4 |
1 files changed, 1 insertions, 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 = _('<p>A new answer for <i>%s</i> has been posted. <a href="%s/forum/%s/question/%s">Click here to access the post.</a></p>') % \ - (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))) |
