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

Cannot change initiative type as an admin #483

Closed
luciegrau opened this issue Feb 5, 2024 · 1 comment · Fixed by #523
Closed

Cannot change initiative type as an admin #483

luciegrau opened this issue Feb 5, 2024 · 1 comment · Fixed by #523
Assignees
Labels
type: bug Issue that describe a bug
Milestone

Comments

@luciegrau
Copy link
Collaborator

Describe the bug
As an admin, I cannot change the type of an initiative sent in technical validation. Indeed, when I update the initiative after changing its type, the new type is not taking in account and the previous remains.

To Reproduce

  1. Go to /admin/initiatives
  2. Click on the initiative configuration button of an initiative sent in technical validation
  3. Modify the "Type" field (at least 2 initiatives types must be created)
  4. Update the changes
  5. See that the new initiative type is not applied

Expected behavior
As an admin, I should be able to change the type of an initiative sent in technical validation.

Screenshots
Original type of the initiative
Capture d’écran 2024-02-05 à 12 05 18
Changing the type and updating it
Capture d’écran 2024-02-05 à 12 01 29
Changing the type and updating it
Capture d’écran 2024-02-05 à 12 05 18

Additional context
Unable to reproduce on nightly.decidim.org (0.28v) !

@luciegrau luciegrau added the release: v2.0 Candidate for 2.0.0 release label Feb 5, 2024
@luciegrau luciegrau added this to the v2.0.0 milestone Feb 5, 2024
@luciegrau luciegrau added type: bug Issue that describe a bug and removed release: v2.0 Candidate for 2.0.0 release labels Feb 5, 2024
@luciegrau luciegrau modified the milestones: v2.0.0, v2.1.0 Feb 6, 2024
@luciegrau luciegrau added the release: v2.1 Candidate for 2.1.0 release label Feb 12, 2024
@luciegrau
Copy link
Collaborator Author

The impossibility of changing the type of an initiative seems to be linked to sectors: I can change the type of an initiative as long as the sector remains unchanged. In concrete terms, this means that I can change the type A of an initiative to type B if the sector of type A is the same for type B. If the sector of type A is different from the sector selected for type B, I cannot change the sector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Issue that describe a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants