summaryrefslogtreecommitdiff
path: root/addons/website_forum/controllers
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-10-17 15:14:47 +0200
committerChristophe Simonis <chs@odoo.com>2017-10-17 15:14:47 +0200
commit868e718e09e03dcc09b992f02ffee6feee7a026c (patch)
tree692bd428409d83bd881fe4f757c67c40fbbccea3 /addons/website_forum/controllers
parent3993528bacf2231010ab65fef70dd17f93b26466 (diff)
parent8d0942380b5743145bee624411a15d71d225b246 (diff)
[MERGE] forward port branch saas-15 up to 8d0942380b5
Diffstat (limited to 'addons/website_forum/controllers')
-rw-r--r--addons/website_forum/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py
index fb21827b0fe..8ec59225e6b 100644
--- a/addons/website_forum/controllers/main.py
+++ b/addons/website_forum/controllers/main.py
@@ -322,7 +322,7 @@ class WebsiteForum(http.Controller):
if post_type == 'question' and not post.get('post_name', ''):
return request.render('website.http_error', {'status_code': _('Bad Request'), 'status_message': _('Title should not be empty.')})
if post.get('content', '') == '<p><br></p>':
- return werkzeug.utils.redirect("/forum/%s/question/%s?nocontent=1" % (slug(forum), post_parent and slug(post_parent)))
+ return request.render('website.http_error', {'status_code': _('Bad Request'), 'status_message': _('Question should not be empty.')})
post_tag_ids = forum._tag_to_write_vals(post.get('post_tags', ''))