From 76e14784055d4055934d734ba8f8ad2e8d4e0bc0 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 10 Sep 2023 12:22:12 +0200 Subject: [PATCH] Fix the import of user options of type `labeledUrl` See https://www.woltlab.com/community/thread/301510-fehler-beim-speichern-des-benutzerprofils/ --- files/lib/system/exporter/WBB4xExporter.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/files/lib/system/exporter/WBB4xExporter.class.php b/files/lib/system/exporter/WBB4xExporter.class.php index d86c509..46b29fd 100644 --- a/files/lib/system/exporter/WBB4xExporter.class.php +++ b/files/lib/system/exporter/WBB4xExporter.class.php @@ -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() -- 2.20.1