Browse Source

HUE-7222 [desktop] Document filtering on home page always return an empty list

Ying Chen 8 years ago
parent
commit
6c12057
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/models.py

+ 1 - 1
desktop/core/src/desktop/models.py

@@ -923,7 +923,7 @@ class Document2QueryMixin(object):
     """
     documents = self
 
-    if types and isinstance(types, list):
+    if types and isinstance(types, list) and types[0] != 'all':
       documents = documents.filter(type__in=types)
 
     if search_text: