Show unfeasible and unselected investments for finished budgets
We were filtering by winners investments for finished budget without having in consideration other filters. We want the default filter to be `winners` for finished budgets.
This commit is contained in:
@@ -120,6 +120,8 @@ class ApplicationController < ActionController::Base
|
||||
def set_default_budget_filter
|
||||
if @budget.try(:balloting?) || @budget.try(:publishing_prices?)
|
||||
params[:filter] ||= "selected"
|
||||
elsif @budget.try(:finished?)
|
||||
params[:filter] ||= "winners"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user