diff --git a/pkg/models/task_collection.go b/pkg/models/task_collection.go index b4f8d7f7e..c03e143e8 100644 --- a/pkg/models/task_collection.go +++ b/pkg/models/task_collection.go @@ -269,7 +269,11 @@ func (tf *TaskCollection) ReadAll(s *xorm.Session, a web.Auth, search string, pa tc.isSavedFilter = true if tf.Filter != "" { - tc.Filter = "(" + tf.Filter + ") && (" + tc.Filter + ")" + if tc.Filter != "" { + tc.Filter = "(" + tf.Filter + ") && (" + tc.Filter + ")" + } else { + tc.Filter = tf.Filter + } } return tc.ReadAll(s, a, search, page, perPage)