fix: ambiguous title column in task search (#1012)

This commit is contained in:
kolaente
2025-06-24 22:38:35 +02:00
committed by GitHub
parent 4f99bdb50c
commit f9b31ab4bf
2 changed files with 2 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ func (t *APIToken) ReadAll(s *xorm.Session, a web.Auth, search string, page int,
if search != "" {
where = builder.And(
where,
db.ILIKE("title", search),
db.ILIKE("api_tokens.title", search),
)
}

View File

@@ -282,7 +282,7 @@ func (d *dbTaskSearcher) Search(opts *taskSearchOptions) (tasks []*Task, totalCo
if opts.search != "" {
where =
builder.Or(
db.ILIKE("title", opts.search),
db.ILIKE("tasks.title", opts.search),
db.ILIKE("description", opts.search),
)