Posted by RoboPhred on April 22, 2008 at 12:24am
11 followers
| Project: | Fivestar |
| Version: | 6.x-1.19 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
When a comment with a vote is deleted, the user's vote stays.
The user can then make a new comment with a new vote, but the new vote is not counted for the page (although still displayed above the comment).
Comments
#1
Thanks, looks like a bug introduced in 1.12 for Drupal 5. I'll have a look.
#2
Oh.. and 6 too. Dang. Problems in both places.
#3
This should now be fixed, you can grab the patch from:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/fivestar/fi...
Or wait for 1.13.
#4
Automatically closed -- issue fixed for two weeks with no activity.
#5
How can I manually delete the ratings safely? Either sql or php if the api supports deleting votes.
#6
when the new version comes?
#7
#8
It'll come when the issue queue is cleared of all the current bugs. This issue is fixed, the 1.13 version just hasn't come out yet.
#9
Automatically closed -- issue fixed for two weeks with no activity.
#10
But i have still this problem with drupal6! If i delete the comment the votes are still save in tables and show up in the fivestar
#11
It there any solution for this problem i still have?
#12
2 Years ago i reported this bug, and now i want to use the modul again and this bug is still alive
Drupal 6.17, Fivestar 1.19 :(
#13
#14
#15
This seems to fix the issue. The problem was that in inserts and updates it was using an old data structure so vote_ids were being recorded as "0" in the fivestar table :-S.
Sorry, don't have time to patch against CVS so i just made a patch against the fivestar directory.
#16
The patch seems to have worked, but it doesnt work for existing votes in queue, only new ones..
Furthermore, I think Fivestar should not count a vote until the comment is approved, which it doesnt do now. Votes are counted as soon as they are submitted...
#17
Thanks for the patch, Lewis, I'll try it and see if it works.
By the way, is there any way to manually delete the "orphaned" votes? I tried browsing the database but found no order in the votes - I was unable to find anything that would identify votes that don't have comments assigned. Perhaps I just looked in wrong places?
#18
This patch resolves the issue. Please apply to the patch to the main repository.
#19
Subscribing, thanks for the patch. Hope it gets reviewed by the maintainer and committed soon. Many thanks!
#20
Marked as a duplicate of #601160: Comment-cast ratings not deleted with comment.