On the individual votes page at node/NODEID/advpoll/votes there is a minor problem with the displayed text above the table. In function advpoll_votes_page() of includes/advpoll.pages.inc the string $output is first set, but later instead of appending to it, the code simply overwrites its value:

$output = t('This table lists all the recorded votes for this poll.');
  if ($data->mode == 'unlimited') {
    $output = t('With unlimited voting, a timestamp is used to identify unique votes.  If it is important to identify users by ID or IP, switch to normal voting mode which will use your Voting API settings to record votes.');
  } elseif ($data->mode == 'cookie') {
    $output = t('With cookie-based voting, a timestamp is used to identify unique votes while the poll\'s id is set in the cookie to limit votes for a limited time.  If it is important to identify users by ID or IP, switch to normal voting mode which will use your Voting API settings to record votes.');
  } else {
    $output = t('If anonymous users are allowed to vote, they will be identified by the IP address of the computer they used when they voted.');
  }

The code should look like this:

$output = t('This table lists all the recorded votes for this poll.') . " ";
  if ($data->mode == 'unlimited') {
    $output .= t('With unlimited voting, a timestamp is used to identify unique votes.  If it is important to identify users by ID or IP, switch to normal voting mode which will use your Voting API settings to record votes.') . " ";
  } elseif ($data->mode == 'cookie') {
    $output .= t('With cookie-based voting, a timestamp is used to identify unique votes while the poll\'s id is set in the cookie to limit votes for a limited time.  If it is important to identify users by ID or IP, switch to normal voting mode which will use your Voting API settings to record votes.') . " ";
  } else {
    $output .= t('If anonymous users are allowed to vote, they will be identified by the IP address of the computer they used when they voted.') . " ";
  }

The same applies to function advpoll_ranking_votes_page() of advpoll_ranking/advpoll_ranking.module. See the attached patch.

CommentFileSizeAuthor
fix-text-is-overwritten.patch3.8 KBecsedi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ecsedi created an issue.