[Form] fixed flawed condition

This commit is contained in:
Kris Wallsmith 2012-01-10 09:16:51 -08:00
parent 74961c8d22
commit aa58330047

View File

@ -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();