Skip to content
Snippets Groups Projects
Commit 0b750209 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #607802 by catch: fixed broken database query.

parent 5b5cf0b0
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -439,9 +439,9 @@ function poll_load($nodes) {
$poll->choice = db_select('poll_choice', 'c')
->addTag('translatable')
->fields('c', array('chid', 'chtext', 'chvotes', 'weight'))
->condition('c', 'nid', $node->nid)
->condition('c.nid', $node->nid)
->orderBy('weight')
->fetchAllAssoc('chid', PDO::FETCH_ASSOC);
->execute()->fetchAllAssoc('chid', PDO::FETCH_ASSOC);
// Determine whether or not this user is allowed to vote.
$poll->allowvotes = FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment