Fix form type to use in advanced search

This commit is contained in:
Julie Lenaerts 2024-10-22 09:15:25 +02:00
parent 9741794f7a
commit 0c1c1cbf8b

View File

@ -11,7 +11,6 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Search;
use Chill\MainBundle\Form\GenderType;
use Chill\MainBundle\Form\Type\ChillDateType;
use Chill\MainBundle\Form\Type\ChillPhoneNumberType;
use Chill\MainBundle\Pagination\PaginatorFactory;
@ -22,6 +21,7 @@ use Chill\MainBundle\Search\SearchInterface;
use Chill\MainBundle\Search\Utils\ExtractDateFromPattern;
use Chill\MainBundle\Search\Utils\ExtractPhonenumberFromPattern;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Form\Type\PickGenderType;
use Chill\PersonBundle\Repository\PersonACLAwareRepositoryInterface;
use libphonenumber\PhoneNumber;
use Symfony\Component\Form\Extension\Core\Type\TextType;
@ -69,7 +69,7 @@ class PersonSearch extends AbstractSearch implements HasAdvancedSearchFormInterf
'required' => false,
'label' => 'Part of the phonenumber',
])
->add('gender', GenderType::class, [
->add('gender', PickGenderType::class, [
'label' => 'Gender',
'required' => false,
'expanded' => false,