From adf9daa1177fdd4b591c8ef9b6467ed3ccae735d Mon Sep 17 00:00:00 2001 From: Tykayn Date: Mon, 23 Jun 2025 22:41:45 +0200 Subject: [PATCH] fix submit var --- src/Controller/PublicController.php | 1 + templates/public/edit/tags.html.twig | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Controller/PublicController.php b/src/Controller/PublicController.php index 09c8ed33..0d7474d3 100644 --- a/src/Controller/PublicController.php +++ b/src/Controller/PublicController.php @@ -372,6 +372,7 @@ class PublicController extends AbstractController 'exception_message' => $exception_message, 'mapbox_token' => $_ENV['MAPBOX_TOKEN'], 'maptiler_token' => $_ENV['MAPTILER_TOKEN'], + 'hide_filled_inputs' => false, ]); } diff --git a/templates/public/edit/tags.html.twig b/templates/public/edit/tags.html.twig index 35500ac1..298a6c0f 100644 --- a/templates/public/edit/tags.html.twig +++ b/templates/public/edit/tags.html.twig @@ -2,7 +2,7 @@
{% for k, v in commerce_overpass.tags_converted %} -
+
{% if k not in excluded_tags_to_render %}
@@ -34,7 +34,7 @@ id="commerce_tag_value__{{ k }}" name="commerce_tag_value__{{ k }}" value="{{ v }}" - {% if hide_filled_inputs and v %}style="display: none;"{% endif %}> + {% if hide_filled_inputs is defined and v %}style="display: none;"{% endif %}>
{% endif %}