8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-09-28 07:03:09 +00:00

Fix advanced search filters for empty query

This commit is contained in:
Jean-Romain Garnier 2020-12-27 15:47:41 +01:00
parent 108d0201d2
commit 3f0901bbb3

View file

@ -564,4 +564,9 @@ def create_queries(query):
queries.append(current_query)
# Make sure there is at least one query, even if it's empty
# Otherwise, display filters (for advanced search) won't work
# when the search text field is empty
queries = queries or [Query()]
return queries