Describe the bug
When importing proposals to projects in admin panel it is possible to import proposal to project more than once when the budget component is unpublished.
To Reproduce
Steps to reproduce the behavior:
- Create proposals component and some proposals (not mandatory if you have proposals already)
- Create budget component (don't publish it) into same participatory space than proposals component
- Create budget
- Go to budgets page and "Import proposals to projects"
- Repeat step 4
Expected behavior
I would expect import feature work same way whether the target component is published or not.
Screenshots

Extra data (please complete the following information):
- Decidim Version: 0.27-dev
- Decidim installation: local
Additional context
I think it's because of this:
|
scope.includes(:component).where.not(decidim_components: { published_at: nil }) |
Describe the bug
When importing proposals to projects in admin panel it is possible to import proposal to project more than once when the budget component is unpublished.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect import feature work same way whether the target component is published or not.
Screenshots

Extra data (please complete the following information):
Additional context
I think it's because of this:
decidim/decidim-core/lib/decidim/resourceable.rb
Line 66 in 117263a