From ac88e46a7d65ffb7020665a39dd4248380017d67 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 13 Jun 2022 09:51:08 +0200 Subject: [PATCH] change order of birthdate fields in advanced search --- CHANGELOG.md | 1 + src/Bundle/ChillPersonBundle/Search/PersonSearch.php | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c479fe6b..99488850e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ and this project adheres to * [activity] activity admin: translations + remove label field for comment on admin activity type (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/587) * [main] admin user_job: improvements (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/588) * [address] can add extra address info even if noAddress (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/576) +* [search] Change order of birthdate fields in advanced search ### 2022-05-06 diff --git a/src/Bundle/ChillPersonBundle/Search/PersonSearch.php b/src/Bundle/ChillPersonBundle/Search/PersonSearch.php index 08fdf072e..7691ff923 100644 --- a/src/Bundle/ChillPersonBundle/Search/PersonSearch.php +++ b/src/Bundle/ChillPersonBundle/Search/PersonSearch.php @@ -82,10 +82,6 @@ class PersonSearch extends AbstractSearch implements HasAdvancedSearchFormInterf 'label' => 'Last name', 'required' => false, ]) - ->add('birthdate-after', ChillDateType::class, [ - 'label' => 'Birthdate after', - 'required' => false, - ]) ->add('birthdate', ChillDateType::class, [ 'label' => 'Birthdate', 'required' => false, @@ -94,6 +90,10 @@ class PersonSearch extends AbstractSearch implements HasAdvancedSearchFormInterf 'label' => 'Birthdate before', 'required' => false, ]) + ->add('birthdate-after', ChillDateType::class, [ + 'label' => 'Birthdate after', + 'required' => false, + ]) ->add('phonenumber', TelType::class, [ 'required' => false, 'label' => 'Part of the phonenumber',