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.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | fivestar_1245700_8.patch | 568 bytes | adel-by |
Comments
Comment #0.0
Anonymous (not verified) commentedforget to write th type of widget
Comment #1
reecemarsland commentedI'm having this same issue. I might spend some time tomorrow trying to debug and spin up a patch.
Comment #2
ericduran commentedAre 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.
Comment #3
ericduran commentedMarking a cannot reproduce, please read my previous comment. Thanks.
Comment #4
reecemarsland commentedAfter 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 =).
Comment #5
reecemarsland commentedComment #6
Thelrin commentedI 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.
Comment #7
ericduran commentedI changed the title, even thought that seems like a completely different issue the the original issue.
Comment #8
adel-by commentedi think its _fivestar_cast_vote() the uid is set to the curent user (the one approving the comment).
Comment #8.0
adel-by commentedmore information
Comment #9
whiteph commentedPlease test with 7.x-2.1 release and report back, as there have been a lot of fixes applied since then.
Comment #10
roderikThis 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).
Comment #11
dbt102 commented