Fixed issue when editing disabled users
authorMarcel Werk <burntime@woltlab.com>
Sun, 2 Jun 2013 15:11:31 +0000 (17:11 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 2 Jun 2013 15:11:31 +0000 (17:11 +0200)
wcfsetup/install/files/lib/data/user/UserAction.class.php

index 65ca6bcc774cc378243a1d5b7051e0accc1b2b7c..632b97750db8e000584a9ae1e685a16ede91f229 100644 (file)
@@ -292,7 +292,10 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio
                $userOptions = (isset($this->parameters['options'])) ? $this->parameters['options'] : array();
                
                if (!empty($groupIDs)) {
-                       $action = new UserAction($this->objects, 'addToGroups', array('groups' => $groupIDs));
+                       $action = new UserAction($this->objects, 'addToGroups', array(
+                               'groups' => $groupIDs,
+                               'addDefaultGroups' => false
+                       ));
                        $action->executeAction();
                }