From a250811cc70704956e763214d9b13486a15d564c Mon Sep 17 00:00:00 2001 From: "xtorret@bgeo.es" Date: Wed, 18 Sep 2024 13:13:02 +0200 Subject: [PATCH] feat(set_selectors): Enhance usability when unselect registres in order to do not trigger cross-relation for different mapzones --- utils/fct/gw_fct_setselectors.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/fct/gw_fct_setselectors.sql b/utils/fct/gw_fct_setselectors.sql index 7f5732b4f7..25ec3b442e 100644 --- a/utils/fct/gw_fct_setselectors.sql +++ b/utils/fct/gw_fct_setselectors.sql @@ -373,7 +373,8 @@ BEGIN -- manage cross-reference tables select count(*) into v_count from node; - if v_count > 0 then + + if v_count > 0 and (v_value::boolean is true or v_checkall is true or v_checkall is false) then -- inserting sector & muni from selected exploitaiton IF v_tabname IN ('tab_exploitation', 'tab_macroexploitation') THEN