diff --git a/updates/40/40000/utils/dml.sql b/updates/40/40000/utils/dml.sql index 74a6776d3..7a1fb3aef 100644 --- a/updates/40/40000/utils/dml.sql +++ b/updates/40/40000/utils/dml.sql @@ -1083,3 +1083,44 @@ INSERT INTO config_form_fields (formname, formtype, tabname, columnname, layoutn -- 23/01/2025 INSERT INTO sys_function (id, function_name, project_type, function_type, input_params, return_type, descript, sys_role, sample_query, "source") VALUES(3372, 'gw_fct_featurechanges', 'utils', 'function', 'json', 'json', 'Upsert assets in gis', 'role_basic', NULL, 'core'); + + +UPDATE config_form_fields + SET widgetcontrols='{"saveValue":false, "filterSign":"=", "onContextMenu":"Open element"}'::json + WHERE formtype='form_feature' AND columnname='open_element' AND tabname='tab_elements'; + +UPDATE config_form_fields + SET widgetcontrols='{"saveValue":false, "filterSign":"=", "onContextMenu":"Open link"}'::json + WHERE formtype='form_feature' AND columnname='btn_link' AND tabname='tab_elements'; + +UPDATE config_form_fields + SET widgetcontrols='{"saveValue":false, "filterSign":"=", "onContextMenu":"Delete element"}'::json + WHERE formtype='form_feature' AND columnname='delete_element' AND tabname='tab_elements'; + +UPDATE config_form_fields + SET widgetcontrols='{"onContextMenu":"Open gallery"}'::json + WHERE formtype='form_feature' AND columnname='btn_open_gallery' AND tabname='tab_event'; + +UPDATE config_form_fields + SET widgetcontrols='{"saveValue":false, "filterSign":"=", "onContextMenu":"Open visit event"}'::json + WHERE formtype='form_feature' AND columnname='btn_open_visit_event' AND tabname='tab_event'; + +UPDATE config_form_fields + SET widgetcontrols='{"saveValue":false, "filterSign":"=", "onContextMenu":"Open visit document"}'::json + WHERE formtype='form_feature' AND columnname='btn_open_visit_doc' AND tabname='tab_event'; + +UPDATE config_form_fields + SET widgetcontrols='{"saveValue":false, "filterSign":"=", "onContextMenu":"Delete document"}'::json + WHERE formtype='form_feature' AND columnname='btn_doc_delete' AND tabname='tab_documents'; + +UPDATE config_form_fields + SET widgetcontrols='{"saveValue":false, "filterSign":"=", "onContextMenu":"Open document"}'::json + WHERE formtype='form_feature' AND columnname='open_doc' AND tabname='tab_documents'; + +UPDATE config_form_fields + SET widgetcontrols='{"saveValue":false, "onContextMenu":"Edit dscenario"}'::json + WHERE formtype='form_feature' AND tabname='tab_epa' AND columnname='edit_dscenario'; + +UPDATE config_form_fields + SET widgetcontrols='{"saveValue":false, "onContextMenu":"Delete dscenario"}'::json + WHERE formtype='form_feature' AND tabname='tab_epa' AND columnname='remove_from_dscenario'; \ No newline at end of file diff --git a/updates/40/40000/ws/dml.sql b/updates/40/40000/ws/dml.sql index 799603542..69b02fa13 100644 --- a/updates/40/40000/ws/dml.sql +++ b/updates/40/40000/ws/dml.sql @@ -2990,3 +2990,13 @@ NULL, NULL, NULL, NULL, NULL, NULL, '{"setMultiline":false}'::json, NULL, NULL, INSERT INTO arc_add (arc_id, flow_max, flow_min, flow_avg, vel_max, vel_min, vel_avg, tot_headloss_max, tot_headloss_min, result_id) SELECT arc_id, flow_max, flow_min, flow_avg, vel_max, vel_min, vel_avg, NULL, NULL, result_id FROM _arc_add_; + + +-- 23/01/2025 +UPDATE config_form_fields + SET widgetcontrols='{"saveValue":false,"text":"Cancel mincut", "onContextMenu":"Cancel mincut"}'::json + WHERE formname='mincut_manager' AND formtype='form_mincut' AND columnname='cancel_mincut'; + +UPDATE config_form_fields + SET widgetcontrols='{"saveValue":false,"text":"Cancel mincut", "onContextMenu":"Delete mincut"}'::json + WHERE formname='mincut_manager' AND formtype='form_mincut' AND columnname='delete'; \ No newline at end of file