Fix subtle search bug found by stream pages tests, the query was
checking a StreamName against the slug, which happened to work with MySQL because the stream name is the same as the slug, just uppercase - but MySQL is case insensitive - Legacy-Id: 7091
This commit is contained in:
parent
be475b8996
commit
f591735b7d
|
@ -298,7 +298,7 @@ def retrieve_search_results(form, all_types=False):
|
|||
if query["substate"]:
|
||||
docs = docs.filter(tags=query["substate"])
|
||||
elif by == "stream":
|
||||
docs = docs.filter(stream__slug=query["stream"])
|
||||
docs = docs.filter(stream=query["stream"])
|
||||
|
||||
# evaluate and fill in attribute results immediately to cut down
|
||||
# the number of queries
|
||||
|
|
Loading…
Reference in a new issue