Commit 495d50b8 authored by Florian Joriot's avatar Florian Joriot Committed by Laurent Lecluse
Browse files

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

(cherry picked from commit 4b357520)
parent c427ba64
Loading
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
            ],
        ]);