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

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).