From f5261f5df8c2b6e524e140abce6530498d28eb1a Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 20 Jul 2013 22:37:11 +0200 Subject: [PATCH] Fixed import issue --- .../system/importer/UserGroupImporter.class.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/wcfsetup/install/files/lib/system/importer/UserGroupImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserGroupImporter.class.php index 46b7228069..8d657e6c70 100644 --- a/wcfsetup/install/files/lib/system/importer/UserGroupImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserGroupImporter.class.php @@ -1,5 +1,6 @@ $data - )); - $returnValues = $action->executeAction(); - $newGroupID = $returnValues['returnValues']->groupID; + if ($data['groupType'] < 4) { + $newGroupID = UserGroup::getGroupByType($data['groupType'])->groupID; + } + else { + $action = new UserGroupAction(array(), 'create', array( + 'data' => $data + )); + $returnValues = $action->executeAction(); + $newGroupID = $returnValues['returnValues']->groupID; + } ImportHandler::getInstance()->saveNewID('com.woltlab.wcf.user.group', $oldID, $newGroupID); -- 2.20.1