From 2690c99438d5e819dd5781afe727535adf393a0a Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 19 Jun 2024 16:58:04 +0200 Subject: [PATCH] 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" --- pkg/models/tasks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/tasks.go b/pkg/models/tasks.go index ae21ff855..21d2fa7f5 100644 --- a/pkg/models/tasks.go +++ b/pkg/models/tasks.go @@ -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).