mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 03:13:12 +00:00
Fix advanced search filters for empty query
This commit is contained in:
parent
0844d7ad7e
commit
a76c9176c5
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue