Closed (fixed)
Project:
Fivestar
Version:
7.x-2.0-alpha2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Mar 2012 at 18:02 UTC
Updated:
16 Nov 2012 at 13:47 UTC
I have a fivestar field on a content type.
Also i have a fivestar field on a comment field to this content type with parent node as a vote target.
When a user role, with set approval comment enabled, posts a comment with a vote, after approval it does not included into average of the node.
If i edit this comment and save it - it will appear. So thats it...
Thanks in advance
Comments
Comment #1
rootical commentedWell i am to change the priority because as for me it`s critical bug - makes moderating unreal.
Comment #2
drum5ormore commentedI second this.
Comment #3
drum5ormore commentedHere's the steps you can to take to produce this error:
* Follow these steps to include a fivestar field in the comment form: http://drupal.org/node/1308114
* Allow anonymous users to submit comments with administrator approval.
* Create a view showing the average results of the fivestar field.
Here's a scenario you can use to try to experience this strange behavior:
* I add 2 comments as an administrator, one with a rating of '3' and one with a rating of '4'. The view shows an average of 3.5. Perfect!
* I add 1 comment as an anonymous user with a rating of 2. The average doesn't change. Correct.
* I go back as an admin and approve their comment. Now the average shows 2 votes with an average of 2.5. What happened here? It's taking the first and third review I made and ignoring the second! Very weird.
* Now I use rootical's fix above and edit the comment, and click save. The view still shows 2 votes, but now the average is 2. So it's completely ignoring the first two reviews now, and acting as if I submitted the third review twice. In fact, the vote count increases by one for every time I go back and edit the comment.
Comment #4
drum5ormore commented* Changing to alpha2 as that is where I am experiencing the issue
Comment #5
rootical commentedFixed with the latest update. I don`t know what was it core field module or fivestar. Anyway thanks for these critical being fixed
Comment #6
rootical commentedComment #6.0
rootical commentedsome comas