correction sur ctrl tallyday
This commit is contained in:
parent
d8df23bc5d
commit
e9b0c17430
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue