From 9616df192d21f558c20ba71c30b60f0b61fc56c8 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Wed, 10 Jul 2019 18:47:08 +0200 Subject: [PATCH] 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 --- app/views/admin/procedures/_informations.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/procedures/_informations.html.haml b/app/views/admin/procedures/_informations.html.haml index 33ba974e9..7c1b8ad31 100644 --- a/app/views/admin/procedures/_informations.html.haml +++ b/app/views/admin/procedures/_informations.html.haml @@ -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