From b9f4e7ab7de66f8a042eb0cc4f1520b3659d689a Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 7 Aug 2013 19:22:18 +0200 Subject: [PATCH] Fixed import issues --- .../files/lib/system/importer/UserOptionImporter.class.php | 3 +++ 1 file changed, 3 insertions(+) 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)); -- 2.20.1