Select hash and extension
authorCyperghost <olaf_schmitz_1@t-online.de>
Tue, 19 Dec 2023 12:16:58 +0000 (13:16 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Tue, 19 Dec 2023 12:16:58 +0000 (13:16 +0100)
files/lib/system/exporter/WBB4xExporter.class.php

index ee9456b13e977613ccffad9de63dc7270d769fa4..0e57338fa2a699eab591533710db90f69993d90f 100644 (file)
@@ -2760,7 +2760,7 @@ final class WBB4xExporter extends AbstractExporter
         $conditionBuilder = new PreparedStatementConditionBuilder();
         $conditionBuilder->add('event.eventID IN (?)', [$eventIDs]);
         if ($sourceVersion52 && $destVersion52) {
-            $sql = "SELECT      event.*, language.languageCode
+            $sql = "SELECT      event.*, language.languageCode, coverPhoto.fileExtension, coverPhoto.fileHash
                 FROM        calendar" . $this->dbNo . "_event event
                 LEFT JOIN   wcf" . $this->dbNo . "_language language
                 ON          language.languageID = event.languageID
@@ -2820,7 +2820,7 @@ final class WBB4xExporter extends AbstractExporter
                 $data['categoryID'] = $row['categoryID'];
             }
             if ($sourceVersion52 && $destVersion52 && $row['coverPhotoID']) {
-                $additionalData['coverPhoto'] = $this->getCoverPhotoPath($calendarFilePath, $row);
+                $additionalData['coverPhotoFile'] = $this->getCoverPhotoPath($calendarFilePath, $row);
             }
 
             ImportHandler::getInstance()