feat(routing): add departements options to value tag if routing by epci

This commit is contained in:
Eric Leroy-Terquem 2023-09-11 18:12:11 +02:00
parent cf7c7d9761
commit 60e5abd266
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ class Procedure::OneGroupeManagementComponent < ApplicationComponent
return [] if targeted_champ.is_a?(Logic::Empty)
case @revision.types_de_champ_public.find_by(stable_id: targeted_champ.stable_id).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)
departements_for_select
when TypeDeChamp.type_champs.fetch(:regions)
regions_for_select