Merge pull request #11082 from demarches-simplifiees/etq-admin-fix-ordered-services
ETQ Admin, je veux que la liste des services soit classée par ordre alphabétique
This commit is contained in:
commit
3b16e8f190
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue