Fixed import of user option types
authorMarcel Werk <burntime@woltlab.com>
Thu, 18 Jun 2020 18:03:08 +0000 (20:03 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 18 Jun 2020 18:03:08 +0000 (20:03 +0200)
files/lib/system/exporter/WBB4xExporter.class.php

index d978587bc5bdcb7fbeec1f35251fcc32dd01feda..c13c4644d18607551a3ddca09b784a6c013b23d1 100644 (file)
@@ -667,12 +667,12 @@ class WBB4xExporter extends AbstractExporter {
                        $optionType = StringUtil::firstCharToUpperCase($row['optionType']);
                        $className = 'wcf\system\option\\'.$optionType.'OptionType';
                        if (!class_exists($className)) {
-                               $optionType = 'textarea';
+                               $row['optionType'] = 'textarea';
                        }
                        
                        ImportHandler::getInstance()->getImporter('com.woltlab.wcf.user.option')->import($row['optionID'], [
                                'categoryName' => $row['categoryName'],
-                               'optionType' => $optionType,
+                               'optionType' => $row['optionType'],
                                'defaultValue' => $row['defaultValue'],
                                'validationPattern' => $row['validationPattern'],
                                'selectOptions' => $row['selectOptions'],