Commit ba57be5d authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Correction des services de Corps et de Grade qui ne tenait pas compte du changement d'historisation

parent ebace83a
Loading
Loading
Loading
Loading
+2 −4
Changes for module/Application/src/Application/Service/Corps/CorpsService.php: 2 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -30,8 +30,7 @@ class CorpsService {
     */
    public function getCorps($champ = 'libelleLong', $ordre = 'ASC') {
        $qb = $this->createQueryBuilder()
            ->andWhere('corps.histo = :histo')
            ->setParameter('histo', 'O')
            ->andWhere('corps.histo IS NULL')
            ->orderBy('corps.' . $champ, $ordre)
        ;
        $result = $qb->getQuery()->getResult();
@@ -45,8 +44,7 @@ class CorpsService {
     */
    public function getCorpsHistorises($champ = 'libelleLong', $ordre = 'ASC') {
        $qb = $this->createQueryBuilder()
            ->andWhere('corps.histo != :histo')
            ->setParameter('histo', 'O')
            ->andWhere('corps.histo IS NOT NULL')
            ->orderBy('corps.' . $champ, $ordre)
        ;
        $result = $qb->getQuery()->getResult();
+2 −4
Changes for module/Application/src/Application/Service/Grade/GradeService.php: 2 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -28,8 +28,7 @@ class GradeService {
    public function getGrades($champ = 'libelleLong', $ordre ='ASC')
    {
        $qb = $this->createQueryBuilder()
            ->andWhere("grade.histo = :nope")
            ->setParameter('nope', 'O')
            ->andWhere("grade.histo IS NULL")
            ->orderBy('grade.' . $champ, $ordre)
        ;
        $result = $qb->getQuery()->getResult();
@@ -44,8 +43,7 @@ class GradeService {
    public function getGradesHistorises($champ = 'libelleLong', $ordre ='ASC')
    {
        $qb = $this->createQueryBuilder()
            ->andWhere("grade.histo != :nope")
            ->setParameter('nope', 'O')
            ->andWhere("grade.histo IS NOT NULL")
            ->orderBy('grade.' . $champ, $ordre)
        ;
        $result = $qb->getQuery()->getResult();