Explorar el Código

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

Ying Chen hace 8 años
padre
commit
6c12057d94
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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: