diff --git a/app/controllers/administrateurs/services_controller.rb b/app/controllers/administrateurs/services_controller.rb index 7fc329efd..80ad583b1 100644 --- a/app/controllers/administrateurs/services_controller.rb +++ b/app/controllers/administrateurs/services_controller.rb @@ -6,7 +6,7 @@ module Administrateurs skip_before_action :alert_for_missing_service, only: :edit def index @procedure = procedure - @services = services.ordered.sort_by { |service| service == procedure.service ? 0 : 1 } + @services = ([procedure.service].compact + services.ordered).uniq end def new