I followed the instructions here to allow voting on comments to count towards the parent nodes average score.

After those instructions I:

  1. Created a new article as admin
  2. Commented on new article as an anonymous user giving a score of 4 out of 5.
  3. Approved the comment as admin.
  4. At this point when viewing the node the score is correctly displayed as Average: 4 (1 vote).
  5. Add a second comment as anonymous user giving a score of 2 out of 5.
  6. After submitting the comment (as anonymous ) the score on the node is now wrongly displayed as No votes yet and the stars show a score of 0. When viewing the node as admin the stars show the correct score (4) however the description reads No votes yet.
  7. Approved the comment as admin.
  8. Now when viewing the node as admin or anonymous the stars show a score of 2 (should be 3) and the description reads Average: 2 (1 vote) but should read Average: 3 (2 votes).
CommentFileSizeAuthor
fivestar-bug.png22.77 KBdahousecat

Comments

Jeroen94’s picture

This remark returns frequently, but I don't think it's a real bug. You'll find a lot of similar issues when you google it. Fivestar (luckily) only stores the latest vote when the same user votes multiple times. That's why No votes yet is shown in your 6th step and why Average: 2 (1 vote) is displayed when the second comment is approved. The first vote has simply been overwritten.

I don't know whether the anonymous votes are also overwritten when they're sent from a different computer (I hope not), because I've only worked on a localhost until now.

dahousecat’s picture

Ah ha, that would make a lot of sense and explain the behaviour.

dahousecat’s picture

Status: Active » Closed (works as designed)

Jeroen's explanation makes a lot of sense so closing this bug.