reread objects
authorJoshua Rüsweg <josh@joshsboard.de>
Tue, 14 Jan 2014 19:25:47 +0000 (20:25 +0100)
committerJoshua Rüsweg <josh@joshsboard.de>
Tue, 14 Jan 2014 19:25:47 +0000 (20:25 +0100)
wcfsetup/install/files/lib/data/user/UserAction.class.php

index 0600b95d2c974a24f47bba5c6ac608a6b7c609be..f256fad136eade5852d6b45be5803090c18891ef 100644 (file)
@@ -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();