From ce4cd7daf17e91d5ed97afe2dd4b999efbf2d93d Mon Sep 17 00:00:00 2001 From: Lars Date: Fri, 27 Mar 2026 21:57:25 +0100 Subject: [PATCH] fix: include filter_conditions in goal type list query Bug 3 Fix: filter_conditions was missing from SELECT statement in list_goal_type_definitions(), preventing edit form from loading existing filter JSON. - Added filter_conditions to line 1087 - Now edit form correctly populates filter textarea --- backend/routers/goals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routers/goals.py b/backend/routers/goals.py index 3b0a529..ce9eda0 100644 --- a/backend/routers/goals.py +++ b/backend/routers/goals.py @@ -1084,7 +1084,7 @@ def list_goal_type_definitions(session: dict = Depends(require_auth)): cur.execute(""" SELECT id, type_key, label_de, label_en, unit, icon, category, source_table, source_column, aggregation_method, - calculation_formula, description, is_system, is_active, + calculation_formula, filter_conditions, description, is_system, is_active, created_at, updated_at FROM goal_type_definitions WHERE is_active = true