From: Alexander Ebert Date: Sun, 10 Sep 2023 10:22:12 +0000 (+0200) Subject: Fix the import of user options of type `labeledUrl` X-Git-Tag: 6.0.0_RC_1~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=76e14784055d4055934d734ba8f8ad2e8d4e0bc0;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Fix the import of user options of type `labeledUrl` See https://www.woltlab.com/community/thread/301510-fehler-beim-speichern-des-benutzerprofils/ --- 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()