From f7a080e1b6bd3d6cdae494f3c5e1f084a78b32c9 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Tue, 3 Dec 2024 11:04:02 +0100 Subject: [PATCH] add empty hidden input so that empty checkboxes get submitted fixes: #35352 Signed-off-by: Erik Jan de Wit --- .../resources/theme/keycloak.v2/login/user-profile-commons.ftl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/src/main/resources/theme/keycloak.v2/login/user-profile-commons.ftl b/themes/src/main/resources/theme/keycloak.v2/login/user-profile-commons.ftl index 46fb70d1df5a..ef1726cabad1 100644 --- a/themes/src/main/resources/theme/keycloak.v2/login/user-profile-commons.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/user-profile-commons.ftl @@ -176,7 +176,8 @@ <#assign classDiv=properties.kcInputClassRadio!> <#assign classInput=properties.kcInputClassRadioInput!> <#assign classLabel=properties.kcInputClassRadioLabel!> - <#else> + <#else> + <#assign inputType='checkbox'> <#assign classDiv=properties.kcInputClassCheckbox!> <#assign classInput=properties.kcInputClassCheckboxInput!>