Add condition to show only selected investments in publishing_prices phase

This commit is contained in:
María Checa
2018-05-08 13:02:50 +02:00
committed by Angel Perez
parent 06772a7b87
commit 1169c10907
3 changed files with 34 additions and 1 deletions

View File

@@ -117,7 +117,7 @@ class ApplicationController < ActionController::Base
end
def set_default_budget_filter
if @budget.try(:balloting?)
if @budget.try(:balloting?) || @budget.try(:publishing_prices?)
params[:filter] ||= "selected"
end
end