feat(routing): can create simple routing from epci tdc
This commit is contained in:
parent
60e5abd266
commit
588143f9fd
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ module Administrateurs
|
|||
tdc = @procedure.active_revision.routable_types_de_champ.find { |tdc| tdc.stable_id == stable_id }
|
||||
|
||||
case tdc.type_champ
|
||||
when TypeDeChamp.type_champs.fetch(:communes), TypeDeChamp.type_champs.fetch(:departements)
|
||||
when TypeDeChamp.type_champs.fetch(:communes), TypeDeChamp.type_champs.fetch(:departements), TypeDeChamp.type_champs.fetch(:epci)
|
||||
tdc_options = APIGeoService.departements.map { ["#{_1[:code]} – #{_1[:name]}", _1[:code]] }
|
||||
create_groups_from_territorial_tdc(tdc_options, stable_id)
|
||||
when TypeDeChamp.type_champs.fetch(:regions)
|
||||
|
|
Loading…
Reference in a new issue