Browse Source

Make sure we are populating forums tree before using it to search. #255

Rafał Pitoń 11 years ago
parent
commit
d261178249
1 changed files with 1 additions and 0 deletions
  1. 1 0
      misago/apps/search/views.py

+ 1 - 0
misago/apps/search/views.py

@@ -34,6 +34,7 @@ class ViewBase(object):
             else:
                 if search_data.get('search_forums'):
                     if search_data.get('search_forums_childs'):
+                        Forum.objects.populate_tree()
                         forums_tree = Forum.objects.forums_tree
                         readable_forums = Forum.objects.readable_forums(self.request.acl)