Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When the Rate module enabled and votes are already cast on a node, when viewing the Voting results tab, the Total value of the votes in the second (aggregated) table is not summed up correctly.
It shows all votes cast on the particular node.
Comment | File | Size | Author |
---|---|---|---|
#4 | rate-2855009-4.patch | 600 bytes | Krzysztof Domański |
|
Comments
Comment #2
JordiK CreditAttribution: JordiK commentedThe following solution worked for me, using Yes/No widget.
Open the View "Rate Voting Results" under /admin/structure/views/view/rate_results/edit/summary_block, which is created when installing the Rate module.
In the (second) Summary block there is a sorting criteria defined and based on Created date. Just remove the criteria, since D8 has a problem with aggregating (summing up), with date fields used the results table (either for rendering or just sorting).
You should then see only the distinct vote types and the correct total.
If you want the Yes/Up votes to be rendered first, add a sorting criteria based on Vote type and sort descending.
Comment #3
JordiK CreditAttribution: JordiK commentedComment #4
Krzysztof DomańskiLet's remove the sorting from the Voting Summary.
Comment #6
Krzysztof Domański