Skip to content

Commit

Permalink
Show agents with to date in new lobby event select
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaCheca committed Apr 26, 2018
1 parent c6e0c5f commit f232571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/agents_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class AgentsController < AdminController
respond_to :json

def index
@agents = Agent.select('id', 'name', 'first_surname', 'second_surname').where(to: nil).by_organization(params[:organization_id]).order(:name)
@agents = Agent.active.select('id', 'name', 'first_surname', 'second_surname').by_organization(params[:organization_id]).order(:name)
render :json => @agents
end
end

0 comments on commit f232571

Please sign in to comment.