mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
Debug flash message danger -> error
This commit is contained in:
parent
c2c1d81041
commit
9526f1a3c9
@ -106,7 +106,7 @@ class PersonController extends Controller
|
|||||||
|
|
||||||
if ( ! $form->isValid() ) {
|
if ( ! $form->isValid() ) {
|
||||||
$this->get('session')
|
$this->get('session')
|
||||||
->getFlashBag()->add('danger', 'Thp person data provided'
|
->getFlashBag()->add('error', 'Thp person data provided'
|
||||||
. ' are not valid');
|
. ' are not valid');
|
||||||
|
|
||||||
return $this->render('ChillPersonBundle:Person:edit.html.twig',
|
return $this->render('ChillPersonBundle:Person:edit.html.twig',
|
||||||
@ -263,7 +263,7 @@ class PersonController extends Controller
|
|||||||
$flashBag = $this->get('session')->getFlashBag();
|
$flashBag = $this->get('session')->getFlashBag();
|
||||||
$translator = $this->get('translator');
|
$translator = $this->get('translator');
|
||||||
|
|
||||||
$flashBag->add('danger', $translator->trans('The person data are not valid'));
|
$flashBag->add('error', $translator->trans('The person data are not valid'));
|
||||||
|
|
||||||
foreach($errors as $error) {
|
foreach($errors as $error) {
|
||||||
$flashBag->add('info', $error->getMessage());
|
$flashBag->add('info', $error->getMessage());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user