Skip to content

Can't change an existing poll to Yes/No/Abstain per List #6035

@MoonCubes

Description

@MoonCubes

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

  1. Create a ballet with Voting type set to Yes per candidate.
  2. 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
      }
    ]
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    _waitingWaiting for some other PR/feature; more details in commentsbug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions