1
0
mirror of https://github.com/flarum/core.git synced 2025-07-25 18:51:40 +02:00
Commit Graph

1 Commits

Author SHA1 Message Date
Alexander Skvortsov
b6f0b01307 Fix relevance sort (#2773)
- Adds a field to QueryCriteria that determines whether the sort provided is the controller's default sort
- Set this field to true iff sort not in query params. Default it to false
- Override $sort if a new default sort has been set on search state, and the param is true.
- Add tests!
2021-04-11 22:21:56 -04:00