Commit 4b357520 authored by Florian Joriot's avatar Florian Joriot
Browse files

Bloqué la possibilité de saisir une date de retour de contrat dans le futur

parent e6f4d744
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -262,8 +262,6 @@ class ContratController extends AbstractController
        if (!$this->isAllowed($contrat, Privileges::CONTRAT_VALIDATION)) {
            $this->flashMessenger()->addErrorMessage('Vous n\'avez pas le droit de valider ce projet ' . ($contrat->estUnAvenant() ? 'd\'avenant' : 'de contrat'));

            //$form = null;

            return new MessengerViewModel;
        }

+1 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ class ContratRetourForm extends AbstractForm
                'label' => "Date de retour $contratToString signé",
            ],
            'attributes' => [
                'max' => date('Y-m-d'), // 🔒 interdit toute date future
            ],
        ]);