From: Alexander Ebert Date: Wed, 30 Nov 2011 14:05:19 +0000 (+0100) Subject: Updating user options now working X-Git-Tag: 2.0.0_Beta_1~1558 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=881246d67b0d16dc2e75058609a07caa249d0778;p=GitHub%2FWoltLab%2FWCF.git Updating user options now working --- diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index 14c8454b1d..560913a818 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -121,7 +121,14 @@ class UserAction extends AbstractDatabaseObjectAction { * @see wcf\data\AbstractDatabaseObjectAction::update() */ public function update() { - parent::update(); + if (isset($this->parameters['data'])) { + parent::update(); + } + else { + if (!count($this->objects)) { + $this->readObjects(); + } + } $groupIDs = (isset($this->parameters['groups'])) ? $this->parameters['groups'] : array(); $removeGroups = (isset($this->parameters['removeGroups'])) ? $this->parameters['removeGroups'] : array();