hotfix to load categories on error

This commit is contained in:
rgarcia
2017-03-08 22:34:34 +01:00
committed by Julian Herrero
parent bf7112f090
commit 82a2dd622b

View File

@@ -23,6 +23,7 @@ class Management::Budgets::InvestmentsController < Management::BaseController
notice = t('flash.actions.create.notice', resource_name: Budget::Investment.model_name.human, count: 1) notice = t('flash.actions.create.notice', resource_name: Budget::Investment.model_name.human, count: 1)
redirect_to management_budget_investment_path(@budget, @investment), notice: notice redirect_to management_budget_investment_path(@budget, @investment), notice: notice
else else
load_categories
render :new render :new
end end
end end