8
0
Fork 0
mirror of https://gitlab.federez.net/re2o/re2o synced 2024-05-19 00:52:52 +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 committed by Gabriel Detraz
parent 0844d7ad7e
commit a76c9176c5

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