Skip to content

Import proposals from other component fails #13596

@alexrlpz

Description

@alexrlpz

Describe the bug

When the organization has no English as language, there is some unexpected behaviour with the proposal state and the import from other component fails.

When the organization has no English as language, the token generated in the proposals state is different than the ones in the form. We should change the form values dynamically depending on the selected component field. We should also match the fields from the origin component with the ones from the destination component too.

To Reproduce

  1. Change the ENV variables below:
   DECIDIM_AVAILABLE_LOCALES=ca,es
   DECIDIM_DEFAULT_LOCALE=ca 
  1. Run the seeder.
  2. Go to a participatory space admin page.
  3. Create a new Proposals component.
  4. Import proposals from another component as in the video attached and see there is no imported proposals.

Expected behavior

It should import the proposals from the other component.

Screenshots

import_proposal_error.1.mp4

Stacktrace

No response

Extra data

  • Device: Desktop
  • Device OS: Windows 11
  • Browser: Chrome
  • Decidim Version: 0.29 and above
  • Decidim installation: Decidim local installation, the error was detected in Decidim Barcelona instance

Additional context

This error comes from #12052

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions