From 6374f9745c6418afa916423de10af551d56cfb09 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Tue, 14 Jan 2014 20:25:47 +0100 Subject: [PATCH] reread objects --- wcfsetup/install/files/lib/data/user/UserAction.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index 0600b95d2c..f256fad136 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -3,6 +3,7 @@ namespace wcf\data\user; use wcf\data\object\type\ObjectTypeCache; use wcf\data\user\avatar\UserAvatarAction; use wcf\data\user\group\UserGroup; +use wcf\data\user\UserEditor; use wcf\data\AbstractDatabaseObjectAction; use wcf\data\IClipboardAction; use wcf\data\ISearchAction; @@ -345,6 +346,11 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio $userEditor->addToGroups($groupIDs, $deleteOldGroups, $addDefaultGroups); } + //reread objects + $this->objects = array(); + UserEditor::resetCache(); + $this->readObjects(); + if (MODULE_USER_RANK) { $action = new UserProfileAction($this->objects, 'updateUserRank'); $action->executeAction(); -- 2.20.1