When an item have nunber of votes ending with 1 (21, 31, 41...) - fivestar displays that image has just one vote.
But when I vote one more time - it displays correct number (22, 32...).

Comments

quicksketch’s picture

Is the complete number showing up in the HTML code? It might be a CSS issue of sorts. If you can also post a screenshot, that would be tremendously helpful.

seaji’s picture

Priority: Normal » Critical
Status: Active » Needs review

It's the bug in code.
Line 1318 and 1322

  if (isset($votes) && !(isset($user_rating) || isset($average_rating))) {
    $output .= ' <span class="total-votes">'. format_plural($votes, '<span>1</span> vote', '<span>@count</span> votes') .'</span>';
    $div_class = 'count';
  }
  elseif (isset($votes)) {
    $output .= ' <span class="total-votes">('. format_plural($votes, '<span>1</span> vote', '<span>@count</span> votes') .')</span>';
  }

Should be:

  if (isset($votes) && !(isset($user_rating) || isset($average_rating))) {
    $output .= ' <span class="total-votes">'. format_plural($votes, '<span>@count</span> vote', '<span>@count</span> votes') .'</span>';
    $div_class = 'count';
  }
  elseif (isset($votes)) {
    $output .= ' <span class="total-votes">('. format_plural($votes, '<span>@count</span> vote', '<span>@count</span> votes') .')</span>';
  }
quicksketch’s picture

Category: support » bug
Priority: Critical » Normal
Status: Needs review » Fixed

Thanks! Committed. Please submit future patches in a patch format. http://drupal.org/patch/create

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.