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:
parent
399d1e4ac2
commit
9616df192d
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@
|
|||
%h4 À qui s’adresse ma démarche ?
|
||||
.checkbox
|
||||
%label
|
||||
= f.radio_button :for_individual, 1, :checked => true
|
||||
= f.radio_button :for_individual, true
|
||||
%b Ma démarche s’adresse à 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 s’adresse à une personne morale
|
||||
|
||||
%p
|
||||
|
|
Loading…
Reference in a new issue