From c722a94e85a4f2f07042382738169de91fcac93a Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 31 Dec 2012 15:16:30 +0100 Subject: [PATCH] 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. --- wcfsetup/install/files/acp/js/WCF.ACP.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.20.1