Describe the bug
After trying to edit the type of an existing poll to YNA per List,
it instead becomes YNA per candidate.
How to Reproduce
- Create a ballet with Voting type set to Yes per candidate.
- Edit the ballet and set Voting type to Yes/No/Abstain per list.
Expected behavior
The type should be Yes/No/Abstain per list.
Additional context
Request data of changing type from Y per candidate to YNA per list:
[
{
"action": "poll.update",
"data": [
{
"id": 10,
"entitled_group_ids": [
2,
3
],
"max_votes_amount": 1,
"min_votes_amount": 1,
"onehundred_percent_base": "valid",
"pollmethod": "YNA",
"title": "test to list",
"backend": "fast",
"global_abstain": false,
"global_no": false,
"global_yes": false,
"live_voting_enabled": false
}
]
}
]
Request data of changing type from Y per candidate to YNA per candidate:
[
{
"action": "poll.update",
"data": [
{
"id": 9,
"entitled_group_ids": [
2,
3
],
"max_votes_amount": 3,
"min_votes_amount": 1,
"max_votes_per_option": 1,
"onehundred_percent_base": "valid",
"pollmethod": "YNA",
"title": "test to candidate",
"backend": "fast",
"global_abstain": false,
"global_no": false,
"global_yes": false,
"live_voting_enabled": false
}
]
}
]
Describe the bug
After trying to edit the type of an existing poll to YNA per List,
it instead becomes YNA per candidate.
How to Reproduce
Expected behavior
The type should be Yes/No/Abstain per list.
Additional context
Request data of changing type from Y per candidate to YNA per list:
[ { "action": "poll.update", "data": [ { "id": 10, "entitled_group_ids": [ 2, 3 ], "max_votes_amount": 1, "min_votes_amount": 1, "onehundred_percent_base": "valid", "pollmethod": "YNA", "title": "test to list", "backend": "fast", "global_abstain": false, "global_no": false, "global_yes": false, "live_voting_enabled": false } ] } ]Request data of changing type from Y per candidate to YNA per candidate:
[ { "action": "poll.update", "data": [ { "id": 9, "entitled_group_ids": [ 2, 3 ], "max_votes_amount": 3, "min_votes_amount": 1, "max_votes_per_option": 1, "onehundred_percent_base": "valid", "pollmethod": "YNA", "title": "test to candidate", "backend": "fast", "global_abstain": false, "global_no": false, "global_yes": false, "live_voting_enabled": false } ] } ]