From: Marcel Werk Date: Wed, 7 Aug 2013 17:22:18 +0000 (+0200) Subject: Fixed import issues X-Git-Tag: 2.0.0_Beta_7~54 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b9f4e7ab7de66f8a042eb0cc4f1520b3659d689a;p=GitHub%2FWoltLab%2FWCF.git Fixed import issues --- diff --git a/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php index bf4e9e75a8..50a3a5e22a 100644 --- a/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php @@ -4,6 +4,7 @@ use wcf\data\user\option\UserOptionAction; use wcf\data\user\option\UserOptionEditor; use wcf\system\language\LanguageFactory; use wcf\system\WCF; +use wcf\util\StringUtil; /** * Imports user options. @@ -41,6 +42,8 @@ class UserOptionImporter implements IImporter { */ public function import($oldID, array $data, array $additionalData = array()) { $data['packageID'] = 1; + // set temporary option name + $data['optionName'] = StringUtil::getRandomID(); // save option $action = new UserOptionAction(array(), 'create', array('data' => $data));