Also changed the name of the param to `min_total_supports`, which is more descriptive on what it actually does. Backport of 75f20d5 and 07f0806 from AyuntamientoMadrid/consul fork
12 lines
271 B
Ruby
12 lines
271 B
Ruby
module AdminBudgetInvestmentsHelper
|
|
|
|
def advanced_menu_visibility
|
|
(params[:advanced_filters].empty? && params["min_total_supports"].blank?) ? 'hide' : ''
|
|
end
|
|
|
|
def init_advanced_menu
|
|
params[:advanced_filters] = [] unless params[:advanced_filters]
|
|
end
|
|
|
|
end
|