diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-06-03 11:07:56 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-06-03 11:07:56 +0200 |
| commit | d5df72929486eb5a60a0ff122fb10292cea85351 (patch) | |
| tree | 419ec208e9c71a4a981d32fb9b5ed9cf8ba2d03b /addons/website_forum/controllers/main.py | |
| parent | 589751ca28e6b55999b4c3bcb5c03519287c522b (diff) | |
| parent | 2779d463e80eaf903e789c29991a1faef8d07445 (diff) | |
[MERGE] forward port of branch 8.0 up to 2779d46
Diffstat (limited to 'addons/website_forum/controllers/main.py')
| -rw-r--r-- | addons/website_forum/controllers/main.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index 4a607b6fee8..99597e2bc5f 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -315,8 +315,9 @@ 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 = tools.mail.plaintext2html(kwargs['comment']) post.with_context(mail_create_nosubscribe=True).message_post( - body=kwargs.get('comment'), + body=body, type='comment', subtype='mt_comment') return werkzeug.utils.redirect("/forum/%s/question/%s" % (slug(forum), slug(question))) |
