fix(typesense): do not try to sort by position when searching in a saved filter
This change fixes a bug where Typesense would try to sort by the project view of a saved filter. The view position is not indexed in Typesense, hence filtering fails. Because sorting by position is not a feature in saved filters, I've removed the logic for sorting saved filters with Typesense.
This commit is contained in:
@ -262,6 +262,7 @@ func (tf *TaskCollection) ReadAll(s *xorm.Session, a web.Auth, search string, pa
|
||||
opts.page = page
|
||||
opts.perPage = perPage
|
||||
opts.expand = tf.Expand
|
||||
opts.isSavedFilter = tf.isSavedFilter
|
||||
|
||||
if view != nil {
|
||||
var hasOrderByPosition bool
|
||||
|
Reference in New Issue
Block a user