Skip to content

Commit

Permalink
Hotfixing find the only budget for emails
Browse files Browse the repository at this point in the history
  • Loading branch information
bertocq committed Jul 13, 2017
1 parent 758c13e commit 2fa5c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/budgets/results_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def load_result
end

def load_budget
@budget = Budget.find_by(slug: params[:id]) || Budget.find_by(id: params[:id])
@budget = Budget.find_by(slug: params[:id]) || Budget.find_by(id: params[:id]) || Budget.first
end

def load_heading
Expand Down

0 comments on commit 2fa5c4a

Please sign in to comment.