[Form] fixed flawed condition
This commit is contained in:
parent
74961c8d22
commit
aa58330047
@ -76,7 +76,7 @@ class DelegatingValidator implements FormValidatorInterface
|
||||
$child->addError($error);
|
||||
}
|
||||
}
|
||||
} elseif ($violations = $this->validator->validate($form)) {
|
||||
} elseif (count($violations = $this->validator->validate($form))) {
|
||||
foreach ($violations as $violation) {
|
||||
$propertyPath = $violation->getPropertyPath();
|
||||
$template = $violation->getMessageTemplate();
|
||||
|
Reference in New Issue
Block a user