mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-25 06:35:32 +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 != "" {
|
if search != "" {
|
||||||
where = builder.And(
|
where = builder.And(
|
||||||
where,
|
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 != "" {
|
if opts.search != "" {
|
||||||
where =
|
where =
|
||||||
builder.Or(
|
builder.Or(
|
||||||
db.ILIKE("title", opts.search),
|
db.ILIKE("tasks.title", opts.search),
|
||||||
db.ILIKE("description", opts.search),
|
db.ILIKE("description", opts.search),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user