mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-02-01 22:47:40 +00:00
fix: ambiguous title column in task search (#1012)
This commit is contained in:
@@ -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),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -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),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user