Skip to content

Commit

Permalink
feat(getformfields): added generic formname when a widget is global…
Browse files Browse the repository at this point in the history
… to all formnames
  • Loading branch information
NullSeile committed Sep 7, 2024
1 parent 26ec5ac commit d993575
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/fct/gw_fct_getformfields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ BEGIN
EXECUTE v_querystring INTO fields_array;

ELSE
--catalogs and managers
v_querystring = concat('SELECT array_agg(row_to_json(a)) FROM (
WITH typevalue AS (SELECT * FROM config_typevalue)
Expand All @@ -233,7 +232,7 @@ BEGIN
LEFT JOIN config_typevalue a ON a.id = widgetfunction::json->>''functionName'' AND a.typevalue = ''widgetfunction_typevalue''
LEFT JOIN config_typevalue b ON b.id = widgettype AND b.typevalue = ''widgettype_typevalue''
WHERE formname = ',quote_nullable(p_formname),' AND formtype= ',quote_nullable(p_formtype),' ',v_clause,' ',v_filter_widgets,' ORDER BY orderby) a');
WHERE formname IN (',quote_nullable(p_formname),', ''generic'') AND formtype= ',quote_nullable(p_formtype),' ',v_clause,' ',v_filter_widgets,' ORDER BY orderby) a');

v_debug_vars := json_build_object('v_label', v_label, 'p_tabname', p_tabname, 'v_device', v_device, 'p_formname', p_formname, 'p_formtype', p_formtype, 'v_clause', v_clause);
v_debug_sql := json_build_object('querystring', v_querystring, 'vars', v_debug_vars, 'funcname', 'gw_fct_getformfields', 'flag', 10);
Expand Down

0 comments on commit d993575

Please sign in to comment.