Delete old vote(s) if user changes own vote

Created on 11 November 2023, about 1 year ago
Updated 13 August 2024, 3 months ago

#1
I enabled the permissions to allow users to change voting.
I think it is not usefull, if a re-casted vote does not delete previous vote(s) from this user. Most situations should be: 1 user has 1 vote. No need to log changed votes. At the moment the database is filling up with overwritten votes.

#2
But this shows another issue: If there are multiple votes from the same user (don't know if this is wanted or a bug) the module counts wrong. As an example: I have one user with one vote and another user with 4 votes created. Sum should be two votes, but the module counts four votes and /node/4/votes shows all 5 votes.
I think, if #1 gets solved, #2 may dissappear, so i am not sure if this is an extra issue.

Testing on D10.1.6, latest dev of widgets and fivestar.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany drupalbubb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024