Commit 1c8638ce authored by Bruno Freitas Tissei's avatar Bruno Freitas Tissei
Browse files

Fix service type order

Signed-off-by: Bruno Freitas Tissei's avatarBruno Freitas Tissei <>
parent 99c143c2
......@@ -361,10 +361,10 @@ class ProfessionalsController < ApplicationController
def shifts
#TODO Tem que fazer [by Fabricio]
if @currentProfessionalServicePlace.role == "adm_c3sl"
@service_places_professionals = ServiceType.all.order(:description)
@service_places_professionals = ServiceType.all.order('description ASC')
ids = ServiceTypeServicePlace.where(service_place_id:
@service_places_professionals = ServiceType.where(id: ids)
@service_places_professionals = ServiceType.where(id: ids).order('description ASC')
if session[:carrega_pagina]
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