Procházet zdrojové kódy

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

Ying Chen před 8 roky
rodič
revize
6c12057
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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: