Fix missing export of label group descriptions (WoltLab Suite Forum)
authorMarcel Werk <burntime@woltlab.com>
Mon, 14 Aug 2023 16:33:59 +0000 (18:33 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 14 Aug 2023 16:33:59 +0000 (18:33 +0200)
files/lib/system/exporter/WBB4xExporter.class.php

index 488129c1d1dfa67dd829a031cca5513a306acf02..6b4e09d1c29312605fc98047575e446fce6ae6fb 100644 (file)
@@ -257,8 +257,7 @@ final class WBB4xExporter extends AbstractExporter
             if (\in_array($item, $this->selectedData)) {
                 if (
                     empty($this->fileSystemPath)
-                    || (
-                        !@\file_exists($this->fileSystemPath . 'lib/core.functions.php')
+                    || (!@\file_exists($this->fileSystemPath . 'lib/core.functions.php')
                         && !@\file_exists($this->fileSystemPath . 'wcf/lib/core.functions.php')
                     )
                 ) {
@@ -1786,6 +1785,7 @@ final class WBB4xExporter extends AbstractExporter
                 // import label group
                 $data = [
                     'groupName' => $labelGroup['groupName'],
+                    'groupDescription' => $labelGroup['groupDescription'] ?? '',
                 ];
 
                 $additionalData = [