Fixes JavaScript of UserGroupOptionForm
authorMatthias Schmidt <gravatronics@live.com>
Mon, 31 Dec 2012 14:16:30 +0000 (15:16 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 31 Dec 2012 14:16:30 +0000 (15:16 +0100)
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

index b4580bd3eec03a8e12ea4f490ac672a8ca36afe0..d7ca3f9f8ed3d5eaed41540bb6a31c3f8e141335 100644 (file)
@@ -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();