It is not anymore possible to use Parent Node in Comments (Voting while editing). It causes a lot of problems.

1. When I post Comment and vote(2/5, 1 vote) on the field(Voting while editing) the vote is normally counted to Parent Node.
2. When I post second Comment and vote(3/5) on the same field the vote is counted to Parent Node but the previous one is deleted/not calculated (3/5, 1 vote)
3.When I vote on the same field(but Voting while viewing) in Parent Node the vote is counted but the previous one is deleted/not calculated again.
4. And when I delete all comments all values of the fields of Parent Node become empty(are deleted) too.

I read the proposal about contribution widgets but I think the old field in editing form with choises Parent Node, Self and Node references is simplier and will cause less problems.

CommentFileSizeAuthor
#8 fivestar_1245700_8.patch568 bytesadel-by

Comments

Anonymous’s picture

Issue summary: View changes

forget to write th type of widget

reecemarsland’s picture

I'm having this same issue. I might spend some time tomorrow trying to debug and spin up a patch.

ericduran’s picture

Status: Active » Postponed (maintainer needs more info)

Are you voting with the same user? Is so this is not a bug, the way voting works is that is the same user votes, the last vote he place is the one that is kept.

This doesn't sound like a bug to me. Maybe I need more info.

ericduran’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Marking a cannot reproduce, please read my previous comment. Thanks.

reecemarsland’s picture

After a bit of digging around I found that the error only happens when comments go into approval. Once they are approved the vote from the comment overwrites the node score with the vote score of the comment rather than updating it with a new average. This is with different users btw and not the same user =).

reecemarsland’s picture

Category: feature » bug
Status: Closed (cannot reproduce) » Active
Thelrin’s picture

Version: 7.x-2.x-dev » 7.x-2.0-alpha1

I have the same problem. When admin approves a comment, the vote is recorded as if it is coming from the admin - not the original user. So it overwrites.

ericduran’s picture

Title: Vote on comment (target parent node) not only once » Vote on comment get wrong user on approval

I changed the title, even thought that seems like a completely different issue the the original issue.

adel-by’s picture

StatusFileSize
new568 bytes

i think its _fivestar_cast_vote() the uid is set to the curent user (the one approving the comment).

adel-by’s picture

Issue summary: View changes

more information

whiteph’s picture

Issue summary: View changes

Please test with 7.x-2.1 release and report back, as there have been a lot of fixes applied since then.

roderik’s picture

This is still an issue. The fix for points 2 and 3 of the original issue description should be in #2326775. Point 4 likely can't be reliably fixed, as noted in #2326775-1: Establish tie between a vote and its rating-while-editing source field.

The point in the issue title, and reported in #6: I don't know (and I think I better not re-test until #2326775 is in).

dbt102’s picture

Status: Active » Closed (outdated)