[FIX] small bug
authorFabien Pinckaers <fp@openerp.com>
Sun, 5 Oct 2014 18:15:15 +0000 (20:15 +0200)
committerFabien Pinckaers <fp@openerp.com>
Sun, 5 Oct 2014 18:15:15 +0000 (20:15 +0200)
addons/website_forum/controllers/main.py

index d86230d..a45bc93 100644 (file)
@@ -281,7 +281,7 @@ class WebsiteForum(http.Controller):
         new_question_id = request.registry['forum.post'].create(cr, uid, {
                 'forum_id': forum.id,
                 'name': post.get('post_name', ''),
-                'content': post.get('content'),
+                'content': post.get('content', False),
                 'content_link': post.get('content_link', False),
                 'parent_id': post_parent and post_parent.id or False,
                 'tag_ids': post_tag_ids,