Closed (duplicate)
Project:
Decisions
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Jan 2010 at 22:40 UTC
Updated:
3 Feb 2010 at 02:49 UTC
Title/question missing from the most recent poll block after voting.
Adding the node title to function function selection_decisions_view_results() did work for us.
Modified: trunk/sites/all/modules/decisions/modes/selection.module
==============================================================================
--- trunk/sites/all/modules/decisions/modes/selection.module (original)
+++ trunk/sites/all/modules/decisions/modes/selection.module Wed Jan 27 15:21:38 2010
@@ -117,6 +117,7 @@
// TODO: Those <div>s and <br />s should be in a theme function. First collect all the data in a structure, then theme it.
// display results for each possible choice
$output .= '<div class="poll">';
+ $output .= $page ? '' : '<div class="title">'. check_plain($node->title) .'</div>';
foreach ($node->choice as $i => $ch) {
if (!array_key_exists($i, $votes)) {
$votes[$i] = 0;
Comments
Comment #1
anarcat commentedThis whole thing needs to be fixed, see #664608: themeable blocks.