Download & Extend

Deleting a comment does not delete the attached vote.

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

Status:active» fixed

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

Status:fixed» closed (fixed)

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

#5

Version:6.x-1.12» 5.x-1.12
Category:bug report» support request

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

Status:closed (fixed)» active

#8

Status:active» fixed

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

Status:fixed» closed (fixed)

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

Version:5.x-1.12» 6.x-1.19
Category:support request» bug report

#14

Status:closed (fixed)» active

#15

Status:active» needs review

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.

AttachmentSizeStatusTest resultOperations
fivestar-comment-delete-insert.patch1009 bytesIgnored: Check issue status.NoneNone

#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

Status:needs review» reviewed & tested by the community

Subscribing, thanks for the patch. Hope it gets reviewed by the maintainer and committed soon. Many thanks!

#20

Status:reviewed & tested by the community» closed (duplicate)

Marked as a duplicate of #601160: Comment-cast ratings not deleted with comment.