Commit 273f7ad6 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

correction mapping codes agr etape

parent f9a452c3
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Agrement/src/Assertion/AgrementAssertion.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -129,7 +129,7 @@ class AgrementAssertion extends AbstractAssertion
    {
        /* Si c'est pour agréer et que le workflow l'interdit alors non! */
        $feuilleDeRoute = $this->getServiceWorkflow()->getFeuilleDeRoute($entity->getIntervenant());
        $wfEtape = $feuilleDeRoute->get($entity->getTypeAgrement()->getCode());
        $wfEtape = $feuilleDeRoute->get(strtolower($entity->getTypeAgrement()->getCode()));

        if (!$wfEtape?->isAllowed()){
            return false;