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

- Patch #38476 by crunchywelch: make voting on polls work from blocks in the sidebar.

parent dba3e800
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
......@@ -317,6 +317,7 @@ function poll_view_voting(&$node, $teaser, $page, $block) {
}
$form['nid'] = array('#type' => 'hidden', '#value' => $node->nid);
$form['vote'] = array('#type' => 'submit', '#value' => t('Vote'));
$form['#action'] = 'node/'. $node->nid;
return drupal_get_form('poll_view_voting', $form);
}
......
......@@ -317,6 +317,7 @@ function poll_view_voting(&$node, $teaser, $page, $block) {
}
$form['nid'] = array('#type' => 'hidden', '#value' => $node->nid);
$form['vote'] = array('#type' => 'submit', '#value' => t('Vote'));
$form['#action'] = 'node/'. $node->nid;
return drupal_get_form('poll_view_voting', $form);
}
......
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