app/controllers/decidim/budgets/orders_controller.rb in decidim-budgets-0.27.3 vs app/controllers/decidim/budgets/orders_controller.rb in decidim-budgets-0.27.4
- old
+ new
@@ -37,10 +37,10 @@
end
private
def budget
- @budget ||= Budget.find_by(id: params[:budget_id])
+ @budget ||= Budget.find_by(id: params[:budget_id], component: current_component)
end
def redirect_path
if params[:return_to] == "budget"
budget_path(budget)