correction sur ctrl tallyday

This commit is contained in:
afornerot 2022-06-08 14:18:58 +02:00
parent d8df23bc5d
commit e9b0c17430
1 changed files with 1 additions and 1 deletions

View File

@ -965,7 +965,7 @@ class TallydayController extends AbstractController
protected function getErrorForm($id,$form,$request,$data,$mode) {
$em = $this->getDoctrine()->getManager();
if(!$em->getRepository("App:Tallyday")->ctrlTallyday($data->getUser(),$data->getDateof()));
if(!$em->getRepository("App:Tallyday")->ctrlTallyday($data->getUser(),$data->getDateof()))
$form->addError(new FormError("Impossible d'entamer une journée sans avoir terminé les jours précédents"));
if ($form->get('submit')->isClicked()) {