From a3e43fcaaaf3a888c8758a9a70a60015c0a97bbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 30 Sep 2021 23:27:56 +0200 Subject: [PATCH] [person form] accept sms is not required --- CHANGELOG.md | 4 ++++ src/Bundle/ChillPersonBundle/Form/PersonType.php | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf27b41f2..34302129a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ and this project adheres to * [Household editor][UI] Update how household suggestion and addresses are picked; * [AddAddress] Handle address suggestion; +* [Person form] "accept sms" not required: + + https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/37 + https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/221 ## Test release yyyy-mm-dd diff --git a/src/Bundle/ChillPersonBundle/Form/PersonType.php b/src/Bundle/ChillPersonBundle/Form/PersonType.php index 376310965..8bc982713 100644 --- a/src/Bundle/ChillPersonBundle/Form/PersonType.php +++ b/src/Bundle/ChillPersonBundle/Form/PersonType.php @@ -129,8 +129,7 @@ class PersonType extends AbstractType $builder ->add('mobilenumber', TelType::class, array('required' => false)) ->add('acceptSMS', CheckboxType::class, array( - 'value' => false, - 'required' => true + 'required' => false )); }