app/forms/decidim/budgets/admin/project_form.rb in decidim-budgets-0.16.1 vs app/forms/decidim/budgets/admin/project_form.rb in decidim-budgets-0.17.0
- old
+ new
@@ -36,9 +36,10 @@
self.decidim_category_id = model.categorization.decidim_category_id
end
def proposals
@proposals ||= Decidim.find_resource_manifest(:proposals).try(:resource_scope, current_component)
+ &.published
&.order(title: :asc)
&.map { |proposal| [present(proposal).title, proposal.id] }
end
# Finds the Category from the decidim_category_id.