From cdb6019a7ed0b63ea40cb1d4fc04914b5c9a3010 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 4 Mar 2018 14:35:02 +0100 Subject: [PATCH] vB5: Fix poll option export --- files/lib/system/exporter/VB5xExporter.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'] )); -- 2.20.1