Skip to content

Commit

Permalink
Merge pull request #434 from AyuntamientoMadrid/427-agents_end_date_fix
Browse files Browse the repository at this point in the history
Show agents with `to` date in new lobby event select
  • Loading branch information
MariaCheca committed Apr 30, 2018
2 parents f069516 + f232571 commit 87e22d9
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 87e22d9

Please sign in to comment.