uchicago-cs / chigame

BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Bug with sorting and filtering #392

Closed frowenz closed 11 months ago

frowenz commented 11 months ago

This pull request addresses a bug that was introduced that broke searching then sorting.

The following line of code in src/templates/base.html changed the requirements of the search form.

<!-- Name must remain as "q" as django-machina expects that name -->
<input id="query-input" name="q" type="text" placeholder="Search..." /> 

What was occuring: ..../search/?query_type=games&query=the... What needed to occur: ..../search/?query_type=games&q=the...

In order to fix this issue, changes were made to the files involved in sorting so that the search form was resubmitted with the proper parameters.