1
0

fix(filters): explicitly use tasks.id as task id filter column

This fixes an error where filtering for labels or other related entities would fail with an error "ambiguous column name id"
This commit is contained in:
kolaente 2024-06-19 16:58:04 +02:00
parent 9101f26101
commit 2690c99438
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -245,7 +245,7 @@ func getFilterCond(f *taskFilter, includeNulls bool) (cond builder.Cond, err err
func getFilterCondForSeparateTable(table string, cond builder.Cond) builder.Cond {
return builder.In(
"id",
"tasks.id",
builder.
Select("task_id").
From(table).