Fixed import issues
authorMarcel Werk <burntime@woltlab.com>
Wed, 7 Aug 2013 17:22:18 +0000 (19:22 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 7 Aug 2013 17:22:18 +0000 (19:22 +0200)
wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php

index bf4e9e75a8915dd743bf313688810b21a7dbde34..50a3a5e22aabdc8e6cf88a0df2f1a586604f6897 100644 (file)
@@ -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));