Просмотр исходного кода

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

Ying Chen 8 лет назад
Родитель
Сommit
6c12057
1 измененных файлов с 1 добавлено и 1 удалено
  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
     documents = self
 
 
-    if types and isinstance(types, list):
+    if types and isinstance(types, list) and types[0] != 'all':
       documents = documents.filter(type__in=types)
       documents = documents.filter(type__in=types)
 
 
     if search_text:
     if search_text: