app/controllers/decidim/proposals/admin/proposals_merges_controller.rb in decidim-proposals-0.25.2 vs app/controllers/decidim/proposals/admin/proposals_merges_controller.rb in decidim-proposals-0.26.0.rc1

- old
+ new

@@ -14,10 +14,13 @@ flash[:notice] = I18n.t("proposals_merges.create.success", scope: "decidim.proposals.admin") redirect_to EngineRouter.admin_proxy(@form.target_component).root_path end on(:invalid) do - flash[:alert] = I18n.t("proposals_merges.create.invalid", scope: "decidim.proposals.admin") + flash[:alert_html] = Decidim::ValidationErrorsPresenter.new( + I18n.t("proposals_merges.create.invalid", scope: "decidim.proposals.admin"), + @form + ).message redirect_to EngineRouter.admin_proxy(current_component).root_path end end end end