From 39d70d5d48f457e917a17b89636ad31a3a5e57af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 13 Jun 2018 16:46:20 +0200 Subject: [PATCH] fix error in validation --- Export/Filter/GenderFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Export/Filter/GenderFilter.php b/Export/Filter/GenderFilter.php index ab551b1f3..dc8697de0 100644 --- a/Export/Filter/GenderFilter.php +++ b/Export/Filter/GenderFilter.php @@ -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(); }