Commit ec5a72d3 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction #43772

parent 922ddd13
Loading
Loading
Loading
Loading
+3 −22
Changes for module/Application/src/Form/OffreFormation/ElementPedagogiqueRechercheFieldset.php: 3 added lines, 22 removed lines.
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset
    protected $queryBuilder;



    public function init()
    {
        $hydrator = new ElementPedagogiqueRechercheHydrator;
@@ -152,7 +151,6 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset
    }



    public function populateOptions()
    {
        $data = $this->getData();
@@ -163,7 +161,6 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset
    }



    protected function getData()
    {
        $key = $this->getServiceContext()->getAnnee()->getId();
@@ -177,7 +174,8 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset
              gtf.libelle_court || e.niveau niveau_id,
              gtf.libelle_court || e.niveau niveau_libelle,
              e.id etape_id,
              e.libelle etape_libelle
              e.libelle etape_libelle,
              gtf.ordre
            FROM
              element_pedagogique ep
              JOIN chemin_pedagogique cp ON cp.element_pedagogique_id = ep.id AND cp.histo_destruction IS NULL
@@ -188,6 +186,7 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset
            WHERE
              ep.histo_destruction IS NULL
              AND ep.annee_id = :annee
            ORDER BY gtf.ordre ASC
              ";

            $res = $this->getEntityManager()->getConnection()->fetchAllAssociative(
@@ -234,7 +233,6 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset
                $result['relations'][$structureId][$niveauId][] = $etapeId;
            }
            asort($result['structures']);
            asort($result['niveaux']);
            asort($result['etapes']);
            $this->getSessionContainer()->{$key} = $result;
        }
@@ -243,56 +241,48 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset
    }



    public function getRelations()
    {
        return $this->relations;
    }



    public function getStructureName()
    {
        return $this->structureName;
    }



    public function getNiveauName()
    {
        return $this->niveauName;
    }



    public function getEtapeName()
    {
        return $this->etapeName;
    }



    public function getStructureEnabled()
    {
        return $this->structureEnabled;
    }



    public function getNiveauEnabled()
    {
        return $this->niveauEnabled;
    }



    public function getEtapeEnabled()
    {
        return $this->etapeEnabled;
    }



    public function setStructureEnabled($structureEnabled = true)
    {
        $this->structureEnabled = $structureEnabled;
@@ -301,7 +291,6 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset
    }



    public function setNiveauEnabled($niveauEnabled = true)
    {
        $this->niveauEnabled = $niveauEnabled;
@@ -310,7 +299,6 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset
    }



    public function setEtapeEnabled($etapeEnabled = true)
    {
        $this->etapeEnabled = $etapeEnabled;
@@ -319,7 +307,6 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset
    }



    /**
     * @return string
     */
@@ -329,7 +316,6 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset
    }



    /**
     * @param string $elementId
     *
@@ -344,7 +330,6 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset
    }



    /**
     * Should return an array specification compatible with
     * {@link Laminas\InputFilter\Factory::createInputFilter()}.
@@ -374,9 +359,6 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset
}





/**
 *
 *
@@ -407,7 +389,6 @@ class ElementPedagogiqueRechercheHydrator implements HydratorInterface
    }



    /**
     * Extract values from an object
     *