From 37826bf7559cedddf489956d87f2445afcd952fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Fri, 7 Jun 2024 13:34:55 +0100 Subject: [PATCH] feat: Fix error with default value for setting_checkbox.html --- src/ui/templates/setting_checkbox.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/templates/setting_checkbox.html b/src/ui/templates/setting_checkbox.html index 0bef9eb9a..6ce9f15f1 100644 --- a/src/ui/templates/setting_checkbox.html +++ b/src/ui/templates/setting_checkbox.html @@ -16,7 +16,7 @@ id="{{ inp_name_mult }}" name="{{ inp_name_mult }}" data-default-method="{% if inp_name in ['AUTOCONF_MODE', 'SWARM_MODE', 'KUBERNETES_MODE'] %}mode{% else %}{{ global_config_method }}{% endif %}" - data-default-value="{{ global_config[inp_name]['value'] }}" + data-default-value="{{ global_config_value }}" {% if inp_name in ['AUTOCONF_MODE', 'SWARM_MODE', 'KUBERNETES_MODE'] or global_config_method != 'ui' and global_config_method != 'default' or is_read_only %} disabled {% endif %} data-checked="{% if global_config_value == "yes" %}true{% else %}false{% endif %}" {% if global_config_value == "yes" %}checked{% endif %}