app/controllers/decidim/budgets/orders_controller.rb in decidim-budgets-0.26.7 vs app/controllers/decidim/budgets/orders_controller.rb in decidim-budgets-0.26.8
- 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)