Always show filters for legislation proposals

As done in the rest of the application: we show the filters even if
there isn't any data to display.
This commit is contained in:
Javi Martín
2018-09-26 11:28:22 +02:00
parent 2fb5fb5fb2
commit d9410a132a
3 changed files with 2 additions and 10 deletions

View File

@@ -95,8 +95,6 @@ class Legislation::ProcessesController < Legislation::BaseController
@proposals = @proposals.search(params[:search]) if params[:search].present?
@proposals = @proposals.send(@current_filter).order('random()').page(params[:page])
@valid_filters = [] unless @proposals.selected.any?
if @process.proposals_phase.started? || (current_user && current_user.administrator?)
legislation_proposal_votes(@proposals)
render :proposals