From: Tim Düsterhus Date: Sun, 4 Mar 2018 13:35:02 +0000 (+0100) Subject: vB5: Fix poll option export X-Git-Tag: 2.1.15~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cdb6019a7ed0b63ea40cb1d4fc04914b5c9a3010;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git vB5: Fix poll option export --- diff --git a/files/lib/system/exporter/VB5xExporter.class.php b/files/lib/system/exporter/VB5xExporter.class.php index 28bc629..6cf086d 100644 --- a/files/lib/system/exporter/VB5xExporter.class.php +++ b/files/lib/system/exporter/VB5xExporter.class.php @@ -653,7 +653,7 @@ class VB5xExporter extends AbstractExporter { * Exports poll options. */ public function exportPollOptions($offset, $limit) { - $sql = "SELECT polloption.*, poll.pollid + $sql = "SELECT polloption.*, poll.nodeid FROM ".$this->databasePrefix."polloption polloption LEFT JOIN ".$this->databasePrefix."poll poll ON poll.nodeid = polloption.nodeid @@ -663,7 +663,7 @@ class VB5xExporter extends AbstractExporter { $statement->execute(array($offset + 1, $offset + $limit)); while ($row = $statement->fetchArray()) { ImportHandler::getInstance()->getImporter('com.woltlab.wbb.poll.option')->import($row['polloptionid'], array( - 'pollID' => $row['pollid'], + 'pollID' => $row['nodeid'], 'optionValue' => $row['title'], 'votes' => $row['votes'] ));