Skip to content

Create initiative form is not taking into account the scope selected #13597

@alexrlpz

Description

@alexrlpz

Describe the bug

When I go to the initiatives page, I select Create an Initiative and after filling the form with a specific scope, the resulting initiative scope is different than the one selected. It is always picking the same one.

To Reproduce

  1. Create a new initiative selecting a specific scope.
  2. See that the initiative created has a different scope.

Expected behavior

It should create an initiative with the scope selected.

Screenshots

Create.a.new.initiative.-.Kutch-Bailey.and.1.more.page.-.InPrivate.-.Microsoft_.Edge.2024-11-04.13-16-41.-.Trim.mp4

Stacktrace

No response

Extra data

  • Device: Desktop
  • Device OS: Windows 11
  • Browser: Chrome
  • Decidim Version: 0.28 and above
  • Decidim installation: Local Decidim installation, detected on Decidim Barcelona instance.

Additional context

It comes from #10727. Before this change, in the create initiative command we found the InitiativesTypeScope by the scope and the type filled in the form. Right now it`s just using the type so it always selects the same one.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions