Fix the import of user options of type `labeledUrl`
authorAlexander Ebert <ebert@woltlab.com>
Sun, 10 Sep 2023 10:22:12 +0000 (12:22 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 10 Sep 2023 10:22:12 +0000 (12:22 +0200)
See https://www.woltlab.com/community/thread/301510-fehler-beim-speichern-des-benutzerprofils/

files/lib/system/exporter/WBB4xExporter.class.php

index d86c509852a8347bd8b502be0a9e30b1418f4424..46b29fdb59d6f36a15d30957bca8b5ba0fb758f5 100644 (file)
@@ -916,6 +916,11 @@ final class WBB4xExporter extends AbstractExporter
                 $outputClass = $row['outputClass'];
             }
 
+            $labeledUrl = null;
+            if ($row['optionType'] === 'labeledUrl') {
+                $labeledUrl = $row['labeledUrl'];
+            }
+
             $data = [
                 'categoryName' => $row['categoryName'],
                 'optionType' => $row['optionType'],
@@ -930,6 +935,7 @@ final class WBB4xExporter extends AbstractExporter
                 'visible' => $row['visible'],
                 'showOrder' => $row['showOrder'],
                 'outputClass' => $outputClass,
+                'labeledUrl' => $labeledUrl,
             ];
 
             ImportHandler::getInstance()