mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
fix error in validation
This commit is contained in:
parent
20b03ee9d1
commit
39d70d5d48
@ -61,7 +61,7 @@ class GenderFilter implements FilterInterface,
|
||||
|
||||
public function validateForm($data, ExecutionContextInterface $context)
|
||||
{
|
||||
if (count($data['accepted_genders']) === 0) {
|
||||
if ($data['accepted_genders'] === null) {
|
||||
$context->buildViolation("You should select an option")
|
||||
->addViolation();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user