From 14a3da7855bf95cb11f99cfab56cc2347f7d075e Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 13 Oct 2023 11:37:07 +0200 Subject: [PATCH] if fields of type 'checkbox' have a default value, the will have a hidden input field to set this value --- views/bootstrap/class.Bootstrap.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index ee7b1b021..17c430c5c 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1217,6 +1217,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);; default: switch($value['type']) { default: + if(!empty($value['type']) && $value['type'] == 'checkbox' && isset($value['default']) && !empty($value['name'])) + echo ''; if(!empty($value['addon'])) echo ""; echo '