From: Joshua Rüsweg Date: Tue, 14 Jan 2014 19:25:47 +0000 (+0100) Subject: reread objects X-Git-Tag: 2.0.4~32^2~6^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6374f9745c6418afa916423de10af551d56cfb09;p=GitHub%2FWoltLab%2FWCF.git reread objects --- 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();