fix tests

This commit is contained in:
2021-08-23 18:19:47 +02:00
parent 8fb4a7110e
commit 647bdb2749
2 changed files with 9 additions and 6 deletions

View File

@@ -275,7 +275,7 @@ final class PersonController extends AbstractController
return $this->redirectToRoute('chill_person_general_edit',
['person_id' => $person->getId()]);
}
} elseif ($request->getMethod() === Request::METHOD_POST) {
} elseif ($request->getMethod() === Request::METHOD_POST && !$form->isValid()) {
$this->addFlash('error', $this->translator->trans('This form contains errors'));
}