Update app/models/type_de_champ.rb

Co-authored-by: Paul Chavard <paul.chavard@beta.gouv.fr>
This commit is contained in:
Lisa Durand 2023-10-11 17:11:44 +02:00 committed by GitHub
parent b7868798ae
commit 6380859668
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -502,7 +502,7 @@ class TypeDeChamp < ApplicationRecord
APIGeoService.regions.map { [_1[:name], _1[:code]] }
elsif choice_type?
if drop_down_list_options?
options[:drop_down_options]
enabled_non_empty_options
elsif yes_no?
Champs::YesNoChamp.options
elsif checkbox?