diff --git a/app/controllers/admin/budget_investments_controller.rb b/app/controllers/admin/budget_investments_controller.rb index 569cc0c57..b83189ccd 100644 --- a/app/controllers/admin/budget_investments_controller.rb +++ b/app/controllers/admin/budget_investments_controller.rb @@ -39,7 +39,7 @@ class Admin::BudgetInvestmentsController < Admin::BaseController if @investment.update(budget_investment_params) redirect_to admin_budget_budget_investment_path(@budget, @investment, - Budget::Investment.filter_params(params)), + Budget::Investment.filter_params(params).to_h), notice: t("flash.actions.update.budget_investment") else load_admins diff --git a/app/controllers/valuation/budget_investments_controller.rb b/app/controllers/valuation/budget_investments_controller.rb index 2ee531f27..5562280c2 100644 --- a/app/controllers/valuation/budget_investments_controller.rb +++ b/app/controllers/valuation/budget_investments_controller.rb @@ -97,8 +97,8 @@ class Valuation::BudgetInvestmentsController < Valuation::BaseController end def params_for_current_valuator - Budget::Investment.filter_params(params).merge(valuator_id: current_user.valuator.id, - budget_id: @budget.id) + Budget::Investment.filter_params(params).to_h.merge({ valuator_id: current_user.valuator.id, + budget_id: @budget.id }) end def valuation_params diff --git a/app/views/admin/budget_investments/_select_investment.html.erb b/app/views/admin/budget_investments/_select_investment.html.erb index e4c7f5355..040d128e1 100644 --- a/app/views/admin/budget_investments/_select_investment.html.erb +++ b/app/views/admin/budget_investments/_select_investment.html.erb @@ -5,7 +5,7 @@ <%= link_to investment.title, admin_budget_budget_investment_path(budget_id: @budget.id, id: investment.id, - params: Budget::Investment.filter_params(params)), + params: Budget::Investment.filter_params(params).to_h), target: "_blank" %>
<%= link_to t("admin.budget_investments.show.edit_classification"), edit_admin_budget_budget_investment_path(@budget, @investment, - {anchor: "classification"}.merge(Budget::Investment.filter_params(params))) unless @budget.finished? %> + {anchor: "classification"}.merge(Budget::Investment.filter_params(params).to_h)) unless @budget.finished? %>