Closed (duplicate)
Project:
Voting API Widgets
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2018 at 15:21 UTC
Updated:
9 Dec 2020 at 07:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Seyedmostafa commentedAny progress for this issue? As it persist in the latest version too.
Comment #3
trishen commentedComment #4
trishen commentedComment #5
Anonymous (not verified) commentedPatch in #3 solved this issue for me.
Without the patch, double clicking would show the an illegal choice message and save a '0' value in the database for fivestar voting widget. With the patch, the message does not appear and no 0-values appear in the database.
Comment #6
bombjack commentedPatch in #3 works for me. As reported by others it removes the 'illegal choice' error when the user re-clicks on the same vote element / star.
Comment #7
bombjack commentedSorry forgot to bump the version, since I have it working with the latest release.
Comment #8
shaundychkoI think the patch in #3 misses the root cause, which is that the javascript is adding an empty value to the list of possible values. The attached patch modifies the configuration option passed which allowed empty values. The patch changes this:
to this:
Notice the empty option in the first.
Comment #9
sara.hussien commentedComment #10
tr commented@sara.hussien: How is your patch different from #8 ? Please post an interdiff.txt and explain why a new patch is needed. Is there something wrong with #8? Do you disagree with #8 ?
Comment #11
loze commentedI have fixed this in a patch in another issue #2831545: Option to cancel vote