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

Merge remote-tracking branch 'origin/b24' into b24

parents dbb2bc01 fd7cc011
Loading
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,
        ]);
    }