From: Matthias Schmidt Date: Thu, 25 Aug 2016 16:04:22 +0000 (+0200) Subject: Fix boolean options on UserGroupOptionForm X-Git-Tag: 3.0.0_Beta_1~507 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3c9315c5ed9f0f37d0b494c14681aa1d5ef9472d;p=GitHub%2FWoltLab%2FWCF.git Fix boolean options on UserGroupOptionForm Fix #2093 --- 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);