procedure: use the model value for checking the radio buttons

Previously `checked: true` forced the checked status, disregarding the
actual value of the model.

Fix #4080
This commit is contained in:
Pierre de La Morinerie 2019-07-10 18:47:08 +02:00
parent 399d1e4ac2
commit 9616df192d

View file

@ -100,7 +100,7 @@
%h4 À qui sadresse ma démarche ?
.checkbox
%label
= f.radio_button :for_individual, 1, :checked => true
= f.radio_button :for_individual, true
%b Ma démarche sadresse à un particulier
%p
@ -108,7 +108,7 @@
.checkbox
%label
= f.radio_button :for_individual, 0, :checked => false
= f.radio_button :for_individual, false
%b Ma démarche sadresse à une personne morale
%p