feat(views): do not override filters in view

This commit is contained in:
kolaente 2024-03-14 15:44:31 +01:00
parent 4149ebed3a
commit 98b7cc9254
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 1 deletions

View File

@ -177,7 +177,11 @@ func (tf *TaskCollection) ReadAll(s *xorm.Session, a web.Auth, search string, pa
return nil, 0, 0, err
}
tf.Filter = view.Filter
if tf.Filter != "" {
tf.Filter = "(" + tf.Filter + ") && (" + view.Filter + ")"
} else {
tf.Filter = view.Filter
}
}
taskopts, err := getTaskFilterOptsFromCollection(tf)