Commit c42be3cc authored by joriot221's avatar joriot221
Browse files

Corretion affichage des heures comprise dans un contrat sans structure

parent 80dcbd73
Loading
Loading
Loading
Loading
+4 −0
Changes for module/Application/src/Controller/ContratController.php: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -146,8 +146,12 @@ class ContratController extends AbstractController
        ];

        foreach ($contrats as $contrat) {
            if ($contrat->getStructure() == null) {
                $services['contractualises'][$contrat->getId()] = $this->getProcessusContrat()->getServices($intervenant, $contrat, null);
            } else {
                $services['contractualises'][$contrat->getId()] = $this->getProcessusContrat()->getServices($intervenant, $contrat, $role->getStructure());
            }
        }

        $nc = $this->getProcessusContrat()->getServices($intervenant, null, $role->getStructure());
        foreach ($nc as $service) {