From abed7de2f8b587da71322af413ec8497bdd454c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Thu, 28 Aug 2025 20:30:59 -0300 Subject: [PATCH 1/6] Disable Ajax for create tracking version form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This form do a full page load, so it's better do disable ajax for it. Signed-off-by: Maurício Meneghini Fauth --- resources/templates/create_tracking_version.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/templates/create_tracking_version.twig b/resources/templates/create_tracking_version.twig index 85505f3468..ec49619309 100644 --- a/resources/templates/create_tracking_version.twig +++ b/resources/templates/create_tracking_version.twig @@ -1,5 +1,5 @@
-
+ {{ get_hidden_inputs(db) }} {% for selected_table in selected %} From 09e453c3330163b802f2cf7d5f1b67af03c2ba25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Thu, 28 Aug 2025 20:52:36 -0300 Subject: [PATCH 2/6] Disable ajax for routine, event and trigger list forms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These forms have event listeners for each action, so it's not needed to have ajax enabled on the form itself. Signed-off-by: Maurício Meneghini Fauth --- resources/templates/database/events/index.twig | 2 +- resources/templates/database/routines/index.twig | 2 +- resources/templates/triggers/list.twig | 2 +- tests/unit/Controllers/Database/EventsControllerTest.php | 4 ++-- tests/unit/Controllers/Database/RoutinesControllerTest.php | 4 ++-- tests/unit/Controllers/Triggers/IndexControllerTest.php | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/templates/database/events/index.twig b/resources/templates/database/events/index.twig index 6477c0c284..18f97dda66 100644 --- a/resources/templates/database/events/index.twig +++ b/resources/templates/database/events/index.twig @@ -31,7 +31,7 @@
- + {{ get_hidden_inputs(db) }}
diff --git a/resources/templates/database/routines/index.twig b/resources/templates/database/routines/index.twig index 0fd504d92b..15711782e1 100644 --- a/resources/templates/database/routines/index.twig +++ b/resources/templates/database/routines/index.twig @@ -42,7 +42,7 @@ {{ list_navigator_html|raw }} {%- endif -%} - + {{ get_hidden_inputs(db, table) }}
diff --git a/resources/templates/triggers/list.twig b/resources/templates/triggers/list.twig index bf95d48aed..4bb4ad0738 100644 --- a/resources/templates/triggers/list.twig +++ b/resources/templates/triggers/list.twig @@ -33,7 +33,7 @@ {{ error_message|raw -}} - + {{ get_hidden_inputs(db, table) }}
diff --git a/tests/unit/Controllers/Database/EventsControllerTest.php b/tests/unit/Controllers/Database/EventsControllerTest.php index 81541ed1de..58b71bf0a5 100644 --- a/tests/unit/Controllers/Database/EventsControllerTest.php +++ b/tests/unit/Controllers/Database/EventsControllerTest.php @@ -95,7 +95,7 @@ final class EventsControllerTest extends AbstractTestCase
- +
@@ -284,7 +284,7 @@ final class EventsControllerTest extends AbstractTestCase
- +
diff --git a/tests/unit/Controllers/Database/RoutinesControllerTest.php b/tests/unit/Controllers/Database/RoutinesControllerTest.php index b08b5ed77f..72f666d155 100644 --- a/tests/unit/Controllers/Database/RoutinesControllerTest.php +++ b/tests/unit/Controllers/Database/RoutinesControllerTest.php @@ -131,7 +131,7 @@ final class RoutinesControllerTest extends AbstractTestCase Create new routine Create new routine
- +
@@ -345,7 +345,7 @@ final class RoutinesControllerTest extends AbstractTestCase Create new routine Create new routine
- +
diff --git a/tests/unit/Controllers/Triggers/IndexControllerTest.php b/tests/unit/Controllers/Triggers/IndexControllerTest.php index 3a378d54fa..de8ac7c943 100644 --- a/tests/unit/Controllers/Triggers/IndexControllerTest.php +++ b/tests/unit/Controllers/Triggers/IndexControllerTest.php @@ -93,7 +93,7 @@ final class IndexControllerTest extends AbstractTestCase
- +
@@ -247,7 +247,7 @@ final class IndexControllerTest extends AbstractTestCase
- +
From bfcb323df8e57119b01ed5382f43cce870a3b297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Thu, 28 Aug 2025 21:06:19 -0300 Subject: [PATCH 3/6] Disable ajax from status monitor js_data form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This form is only used to hold data and it's never submitted. Signed-off-by: Maurício Meneghini Fauth --- resources/templates/server/status/monitor/index.twig | 2 +- tests/unit/Controllers/Server/Status/MonitorControllerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/templates/server/status/monitor/index.twig b/resources/templates/server/status/monitor/index.twig index 006f205951..3be8a859b2 100644 --- a/resources/templates/server/status/monitor/index.twig +++ b/resources/templates/server/status/monitor/index.twig @@ -388,7 +388,7 @@ ]; - + {% for name, value in form %} {% endfor %} diff --git a/tests/unit/Controllers/Server/Status/MonitorControllerTest.php b/tests/unit/Controllers/Server/Status/MonitorControllerTest.php index eef394d7db..68bcd7eefb 100644 --- a/tests/unit/Controllers/Server/Status/MonitorControllerTest.php +++ b/tests/unit/Controllers/Server/Status/MonitorControllerTest.php @@ -87,7 +87,7 @@ class MonitorControllerTest extends AbstractTestCase self::assertStringContainsString('', $html); self::assertStringContainsString('', $html); - self::assertStringContainsString('', $html); + self::assertStringContainsString('', $html); self::assertStringContainsString(' Date: Thu, 28 Aug 2025 21:57:49 -0300 Subject: [PATCH 4/6] Disable ajax for GIS data editor form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Actions of this form have dedicated event listeners. Signed-off-by: Maurício Meneghini Fauth --- resources/templates/gis_data_editor_form.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/templates/gis_data_editor_form.twig b/resources/templates/gis_data_editor_form.twig index 030326322a..d220d77af9 100644 --- a/resources/templates/gis_data_editor_form.twig +++ b/resources/templates/gis_data_editor_form.twig @@ -1,4 +1,4 @@ - +
From b8bea16cb94f7722b10094fb2efce83408d03b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Sun, 31 Aug 2025 10:03:45 -0300 Subject: [PATCH 5/6] Disable ajax for export template forms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The actions of these forms have dedicated event listeners. Signed-off-by: Maurício Meneghini Fauth --- resources/templates/export.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/templates/export.twig b/resources/templates/export.twig index 9d255696c8..2a4a48971b 100644 --- a/resources/templates/export.twig +++ b/resources/templates/export.twig @@ -15,7 +15,7 @@
{{ t('Export templates:') }}
- +
{{ t('New template:') }}
@@ -32,7 +32,7 @@
-
+
{{ t('Existing templates:') }}
From bfc48266fcfb5ef6012090de8be3727d91a17a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Sun, 31 Aug 2025 18:23:03 -0300 Subject: [PATCH 6/6] Disable ajax for the import file form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This form has a dedicated event listener. Signed-off-by: Maurício Meneghini Fauth --- resources/templates/import.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/templates/import.twig b/resources/templates/import.twig index 0ca3769392..77e75af864 100644 --- a/resources/templates/import.twig +++ b/resources/templates/import.twig @@ -15,7 +15,7 @@
ajax clock - {{ get_hidden_inputs(hidden_inputs) }}