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

anarcat’s picture

Status: Active » Closed (duplicate)

This whole thing needs to be fixed, see #664608: themeable blocks.