use wcf\data\user\group\UserGroup;
use wcf\data\user\group\UserGroupAction;
use wcf\data\user\group\UserGroupEditor;
+use wcf\system\option\user\group\UserGroupOptionHandler;
/**
* Imports user groups.
}
$action = new UserGroupAction([], 'create', [
- 'data' => $data
+ 'data' => $data,
+ 'options' => $this->getOptionHandler()->save(),
]);
$returnValues = $action->executeAction();
$group = $returnValues['returnValues'];
return $newGroupID;
}
+
+ protected function getOptionHandler() {
+ $optionHandler = new UserGroupOptionHandler(false, '', '');
+ $optionHandler->init();
+ $optionHandler->readData();
+
+ return $optionHandler;
+ }
}