Merge pull request #755 from sgmap/fix_sentry_issue_tps_dev_1833

If type de champ has no dropdownlist do not crash
This commit is contained in:
Mathieu Magnin 2017-09-22 14:29:56 +02:00 committed by GitHub
commit 6de26e79e6

View file

@ -1,6 +1,7 @@
= render partial: 'new_gestionnaire/dossiers/champs/champ_label', locals: { form: form, champ: champ }
= form.select :value,
champ.drop_down_list.options,
disabled: champ.drop_down_list.disabled_options,
required: champ.mandatory
- if champ.drop_down_list && champ.drop_down_list.options.any?
= form.select :value,
champ.drop_down_list.options,
disabled: champ.drop_down_list.disabled_options,
required: champ.mandatory