Commit 07caf31c authored by Florian Joriot's avatar Florian Joriot
Browse files

Correction probleme de reconduction de Pegase si double code

parent 554a0f31
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -169,7 +169,11 @@ where rang = 1 AND rownum <= :limit
            $annee = $this->getServiceContext()->getAnnee();
        }

        return $this->getRepo()->findOneBy(['code' => $code, 'annee' => $annee->getId()]);
        return $this->getRepo()->findOneBy([
            'code'             => $code,
            'annee'            => $annee->getId(),
            'histoDestruction' => null,
        ]);
    }