- Affected App
- WoltLab Suite Core
Hallo,
Beim vbulletin5x funktioniert der poll import nicht.
pollid gibt es nicht. Richtig wäre:
Code
public function exportPollOptions($offset, $limit) {
$sql = "SELECT polloption.*, poll.nodeid
FROM ".$this->databasePrefix."polloption polloption
LEFT JOIN ".$this->databasePrefix."poll poll
ON poll.nodeid = polloption.nodeid
WHERE polloption.polloptionid BETWEEN ? AND ?
ORDER BY polloption.polloptionid";
$statement = $this->database->prepareStatement($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
ImportHandler::getInstance()->getImporter('com.woltlab.wbb.poll.option')->import($row['polloptionid'], [
'pollID' => $row['nodeid'],
'optionValue' => $row['title'],
'votes' => $row['votes']
]);
}
}
Display More