Must "Cancel Vote" Twice To Clear Star Display and Description

amaisano - June 4, 2009 - 15:10
Project:Fivestar
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Issue tags:delete, multiple clicks, not deleting, page reload, remove, vote
Description

With the "Basic" fivestar theme, users must click the "Cancel Vote" button twice to effectively update the widget's display.

One click on the "X" only changes the description text "Your Rating" to "None." Average Vote and Total Votes continue to display old information (until the page is manually reloaded).

Two clicks on the "X" will finally blank all the stars, and clear the Average Vote, Total Votes, and Your Rating text (without a manual page reload).

Can send a link/login if necessary.

#1

quicksketch - July 1, 2009 - 00:07

I'm able to reproduce this problem, but it only exhibits itself when displaying the stars as "average" or "user vote if available, average otherwise". It does not seem to affect the "dual" display or the "user vote" versions of the widget.

#2

quicksketch - July 1, 2009 - 00:31
Status:active» fixed

This patch should fix the problem. Some changes meant for the 2.x version had slipped into the Drupal 6 1.x version, breaking the return value after casting a new vote.

AttachmentSize
fivestar_cancel_update_average.patch 1.52 KB

#3

System Message - July 15, 2009 - 00:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.