[FIX] website_forum: archived forum -> no ask
An archived forum could still be posted in, something better should be done in the next version (eg. website published present on a lot of record type) but as of 10.0 just this improvement is done. opw-745510 closes #17365
This commit is contained in:
@@ -152,7 +152,7 @@ class WebsiteForum(http.Controller):
|
||||
|
||||
question_ids = Post.search(domain, limit=self._post_per_page, offset=pager['offset'], order=sorting)
|
||||
|
||||
values = self._prepare_forum_values(forum=forum, searches=post)
|
||||
values = self._prepare_forum_values(forum=forum, searches=post, header={'ask_hide': not forum.active})
|
||||
values.update({
|
||||
'main_object': tag or forum,
|
||||
'question_ids': question_ids,
|
||||
|
||||
Reference in New Issue
Block a user