From 881246d67b0d16dc2e75058609a07caa249d0778 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 30 Nov 2011 15:05:19 +0100 Subject: [PATCH] Updating user options now working --- .../install/files/lib/data/user/UserAction.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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(); -- 2.20.1