From a366cc699c70bb964325fb5f6948c717dde44494 Mon Sep 17 00:00:00 2001 From: Galen Date: Fri, 23 Aug 2024 14:47:07 -0700 Subject: [PATCH] refactor ambiguous reference of col graphid in __get_nodegrou_tree, re #11396 --- arches/app/models/migrations/8009_etlmodule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arches/app/models/migrations/8009_etlmodule.py b/arches/app/models/migrations/8009_etlmodule.py index a28d6065c96..88e2526a7a0 100644 --- a/arches/app/models/migrations/8009_etlmodule.py +++ b/arches/app/models/migrations/8009_etlmodule.py @@ -208,7 +208,7 @@ DECLARE _nodegroupid uuid; BEGIN - FOR _nodegroupid IN select ng.nodegroupid from node_groups ng join nodes n on ng.nodegroupid = nodeid where graphid = graph_id and ng.parentnodegroupid is null + FOR _nodegroupid IN select nodegroupid from node_groups where graphid = graph_id and parentnodegroupid is null LOOP RETURN QUERY SELECT _nodegroupid, * FROM __get_nodegroup_tree(_nodegroupid); END LOOP;