From 2ffbe9d78d9c05cc89b4688f7d6699dab4dbd3e0 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Sun, 5 Oct 2014 17:12:06 +0200 Subject: [PATCH] [IMP] cleaning --- addons/website_forum/controllers/main.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index 00311eb..d86230d 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -96,13 +96,8 @@ class WebsiteForum(http.Controller): else: filters = 'all' - if post_type == 'link': - domain += [('type', '=', 'link')] - elif post_type == 'question': - domain += [('type', '=', 'question')] - elif post_type == 'discussion': - domain += [('type', '=', 'discussion')] - + if post_type: + domain += [('type', '=', post_type)] if not sorting: sorting = forum.default_order -- 1.7.10.4