Commit 39d70d5d authored by Julien Fastré's avatar Julien Fastré

fix error in validation

parent 20b03ee9
Pipeline #57408 failed with stages
in 11 seconds
......@@ -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")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment