mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 15:33:45 +00:00
Fix advanced search filters for empty query
This commit is contained in:
parent
108d0201d2
commit
3f0901bbb3
1 changed files with 5 additions and 0 deletions
|
@ -564,4 +564,9 @@ def create_queries(query):
|
||||||
|
|
||||||
queries.append(current_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
|
return queries
|
||||||
|
|
Loading…
Reference in a new issue