Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elections: two issues in cumulative voting #4453

Open
MSoeb opened this issue Dec 5, 2024 · 1 comment · May be fixed by #4492
Open

Elections: two issues in cumulative voting #4453

MSoeb opened this issue Dec 5, 2024 · 1 comment · May be fixed by #4492
Assignees
Labels
Milestone

Comments

@MSoeb
Copy link

MSoeb commented Dec 5, 2024

Describe the bug
In elections with Yes votes, there is a logical error with cumulative votes. It is possible to create an election that allows more votes per option than the maximum number that can be cast. This is incorrect. The maximum vote value is defined independently of cumulation. The accumulation is ranked behind it. It only specifies the maximum number of votes that can be cast per option. This value cannot be higher than the maximum number of votes.

The backend already seems to detect this correctly, as the value of the maximum number of votes that can be cast is taken into account when the votes are cast.

Additionally the button to send votes doesn't become active if numbers are added. It stays gray, but it can be clicked.

Example of ballot setting - affected settings are marked in red:
image

Example what happened during voting - number is entered, but button is still gray
image

Example - number entered is to high and the dialog show correctly the maximum possible votes:
image

How to Reproduce
Steps to reproduce the behavior:

  1. open a meeting
  2. open settings > elections > ballots > mark 'Allow to accumulate several votes on one candidate ("comulative voting")'
  3. open elections > create an election > add a candidate > create a ballot with voting method 'yes per candidate' > add in 'Maximum amount of votes' 4 > add in 'Maximum amount of votes per option' 6 > select in 'entitled to vote' admin group > save
  4. start the ballot and enter a 6 in the number of votes field

Expected behavior
The maximum number of votes per option should be based on the maximum number of votes. 'Maximum amount of votes per option' may be either equal to or less than the value in 'Maximum amount of votes'. If a larger value is entered, an error should appear and it should not be possible to create the vote.

In addition, the voting button should become active as soon as a value has been entered.

@MSoeb MSoeb added the bug label Dec 5, 2024
@MSoeb MSoeb added this to the 4.3 milestone Dec 5, 2024
@Elblinator
Copy link
Member

connected backend Issue
OpenSlides/openslides-backend#2765

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants