Do not display polls associated to a budget in admin poll questions
This section is used to select to which poll a question belongs to. Budget polls are not meant to include questions that come from Citizen Proposals or Government Questions, thus we do not display them
This commit is contained in:
@@ -6,7 +6,7 @@ class Admin::Poll::QuestionsController < Admin::Poll::BaseController
|
||||
load_and_authorize_resource :question, class: "Poll::Question"
|
||||
|
||||
def index
|
||||
@polls = Poll.all
|
||||
@polls = Poll.not_budget
|
||||
@search = search_params[:search]
|
||||
|
||||
@questions = @questions.search(search_params).page(params[:page]).order("created_at DESC")
|
||||
|
||||
Reference in New Issue
Block a user