Commit e2b9859e authored by Matheus Horstmann's avatar Matheus Horstmann 🐴
Browse files

hotfix_shifts_controller: change current service place instead current citizen


Signed-off-by: Matheus Horstmann's avatarMatheus Horstmann <mch15@inf.ufpr.br>
parent 89c987ed
......@@ -678,13 +678,13 @@ class ShiftsController < ApplicationController
#----
# Adicionado .uniq para remover duplicidade no resultado dessa query
@place_service_types = @place_service_types.joins(:service_places)
.where(:service_places => { :id => current_citizen.professional.service_places.first, :active => true })
.where(:service_places => { :id => @currentProfessionalServicePlace.service_place, :active => true })
# Profissionais para os locais de atendimento do
# profissional que está logado no sistema.
#----
# Adicionado .uniq para remover duplicidade no resultado dessa query
@service_places_professionals = @service_places_professionals.joins(:service_places)
.where(:service_places => { :id => current_citizen.professional.service_places.first, :active => true })
.where(:service_places => { :id => @currentProfessionalServicePlace.service_place, :active => true })
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment