mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
fix tests
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user