vB5: Fix poll option export
authorTim Düsterhus <tim@bastelstu.be>
Sun, 4 Mar 2018 13:35:02 +0000 (14:35 +0100)
committerTim Düsterhus <tim@bastelstu.be>
Sun, 4 Mar 2018 13:35:02 +0000 (14:35 +0100)
files/lib/system/exporter/VB5xExporter.class.php

index 28bc6290a171f7fc83105f055716c679aa649fe4..6cf086dc8176666c043637d6ae315f3d2fd9260d 100644 (file)
@@ -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']
                        ));