Commit b0e133a9 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Suppression du cache pour la recherche dans le form de saisie de service

parent f394134c
Loading
Loading
Loading
Loading
+1 −7
Changes for module/Application/src/Form/OffreFormation/ElementPedagogiqueRechercheFieldset.php: 1 added line, 7 removed lines.
Original line number Diff line number Diff line
@@ -166,10 +166,6 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset

    protected function getData()
    {
        $key = $this->getServiceContext()->getAnnee()->getId();

        if (!$this->getSessionContainer()->{$key}) {

        $sql = "
            SELECT DISTINCT
              s.id structure_id,
@@ -236,10 +232,8 @@ class ElementPedagogiqueRechercheFieldset extends AbstractFieldset
        asort($result['structures']);
        asort($result['niveaux']);
        asort($result['etapes']);
            $this->getSessionContainer()->{$key} = $result;
        }

        return $this->getSessionContainer()->{$key};
        return $result;
    }