From: Matthias Schmidt Date: Mon, 31 Dec 2012 14:16:30 +0000 (+0100) Subject: Fixes JavaScript of UserGroupOptionForm X-Git-Tag: 2.0.0_Beta_1~631^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c722a94e85a4f2f07042382738169de91fcac93a;p=GitHub%2FWoltLab%2FWCF.git Fixes JavaScript of UserGroupOptionForm Previously, for an unchecked everybody user group checkbox, null was returned which caused, that no value for the everybody user group was submitted which causes an IllegalLinkException, since that value needs to exist. --- diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index b4580bd3ee..d7ca3f9f8e 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -1008,10 +1008,10 @@ WCF.ACP.Options.Group = Class.extend({ if ($input.attr('type') == 'checkbox') { if ($input.is(':checked')) { - return $input.val(); + return 1; } - return null; + return 0; } return $input.val();