From 3c9315c5ed9f0f37d0b494c14681aa1d5ef9472d Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 25 Aug 2016 18:04:22 +0200 Subject: [PATCH] Fix boolean options on UserGroupOptionForm Fix #2093 --- .../install/files/acp/templates/userGroupBooleanOptionType.tpl | 2 +- wcfsetup/install/files/acp/templates/userGroupOption.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/userGroupBooleanOptionType.tpl b/wcfsetup/install/files/acp/templates/userGroupBooleanOptionType.tpl index ccb11efc5a..bdbf79db1a 100644 --- a/wcfsetup/install/files/acp/templates/userGroupBooleanOptionType.tpl +++ b/wcfsetup/install/files/acp/templates/userGroupBooleanOptionType.tpl @@ -1,4 +1,4 @@ -
    +
    1. diff --git a/wcfsetup/install/files/acp/templates/userGroupOption.tpl b/wcfsetup/install/files/acp/templates/userGroupOption.tpl index 1653887925..8cf0c51d3b 100644 --- a/wcfsetup/install/files/acp/templates/userGroupOption.tpl +++ b/wcfsetup/install/files/acp/templates/userGroupOption.tpl @@ -24,7 +24,7 @@ inputElement.name = 'values[' + groupId + ']' + (inputElement.name.slice(-2) === '[]' ? '[]' : ''); if (isBoolean) { - inputElement.checked = (inputElement.getAttribute('checked') === 'checked'); + inputElement.checked = inputElement.hasAttribute('checked'); id += '_' + groupId; label.removeAttribute('for'); inputElement.nextElementSibling.setAttribute('for', id); -- 2.20.1