Commit 053b0663 authored by Pedro Henrique's avatar Pedro Henrique

Change reports to generate reports of inactive service place as well

Signed-off-by: Pedro Henrique's avatarPedro Henrique! <pha14@inf.ufpr.br>
parent a4d5d1cc
......@@ -460,7 +460,7 @@ class ReportsController < ApplicationController
@search.build_sort
if !current_citizen.professional.administradorc3sl?
@serviceplaces = ServicePlace.all.active.where(:city_hall_id => @currentCityHall.id, :id => @currentProfessionalServicePlace.service_place_id).order('name ASC')
@serviceplaces = ServicePlace.all.where(:city_hall_id => @currentCityHall.id, :id => @currentProfessionalServicePlace.service_place_id).order('name ASC')
@professionals = Professional.active.hide_c3sl_user.where(service_places: {city_hall_id: @currentCityHall.id}).includes(:service_places)
else
@serviceplaces = ServicePlace.all.order('name ASC')
......
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