Commit cfdca65f authored by joriot221's avatar joriot221
Browse files

Ne pas afficher les étapes historisées qui ont des éléments pédagogiques disponibles

parent 6aa878db
Loading
Loading
Loading
Loading
+4 −4
Changes for module/Application/src/Service/OffreFormationService.php: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -226,9 +226,9 @@ class OffreFormationService extends AbstractEntityService
//        $histoDestru = [];

        foreach ($etapes as $v) {
//            if($v->getHistoDestruction() != NULL){
//                $histoDestru[] = $v;
//            }
            if ($v->getHistoDestruction() != null) {
                continue;
            }
            $offresComplementaires[$v->getId()]['reconduction_partiel'] = 'non';
            $offresComplementaires[$v->getId()]['elements_pedagogique'] = [];
            $offresComplementaires[$v->getId()]['etape']                = $v;
@@ -243,7 +243,7 @@ class OffreFormationService extends AbstractEntityService

        foreach ($elements as $v) {

            if ($v->getSource() != $source || $v->getHistoDestruction() != null) {
            if ($v->getSource() != $source || $v->getHistoDestruction() != null || $v->getEtape()->getHistoDestruction() != null) {
                continue;
            }
            $etapeId = $v->getEtape()->getId();