mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
Merge branch 'exports'
This commit is contained in:
@@ -52,13 +52,13 @@ class GenderFilter implements FilterInterface,
|
||||
Person::FEMALE_GENDER => 'Woman',
|
||||
Person::MALE_GENDER => 'Man'
|
||||
),
|
||||
'multiple' => true,
|
||||
'multiple' => false,
|
||||
'expanded' => false
|
||||
));
|
||||
}
|
||||
|
||||
public function validateForm($data, ExecutionContextInterface $context)
|
||||
{dump($data);
|
||||
{
|
||||
if (count($data['accepted_genders']) === 0) {
|
||||
$context->buildViolation("You should select an option")
|
||||
->addViolation();
|
||||
|
Reference in New Issue
Block a user