Fix loading tasks with search
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2020-12-23 16:02:31 +01:00
parent 166023aba7
commit b733608eeb
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ func getRawTasksForLists(s *xorm.Session, lists []*List, a web.Auth, opts *taskO
if config.DatabaseType.GetString() == "postgres" {
where = builder.Expr("title ILIKE ?", "%"+opts.search+"%")
} else {
where = &builder.Like{"title LIKE ?", "%" + opts.search + "%"}
where = &builder.Like{"title", "%" + opts.search + "%"}
}
}