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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JordiK created an issue. See original summary.

JordiK’s picture

The 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.

JordiK’s picture

Issue summary: View changes
Krzysztof Domański’s picture

Assigned: JordiK » Unassigned
Status: Active » Needs review
FileSize
600 bytes

Let's remove the sorting from the Voting Summary.

Krzysztof Domański’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.