hotfix to load categories on error
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user