Commit 8dfb2361 authored by Jean-Baptiste Oellers's avatar Jean-Baptiste Oellers
Browse files

Fix: filtre montant prévu redmine 64609

parent f11b9fb6
Loading
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -1026,13 +1026,14 @@ class ActivityRepository extends EntityRepository
        if ($min !== null) {
            $qb->where('c.amount >= :min');
            $parameters['min'] = $min;
        }

            if ($max !== null) {
            $qb->where('c.amount >= :max');
                $qb->andWhere('c.amount <= :max');
                $parameters['max'] = $max;
            }
        } else if ($max !== null) {
            $qb->where('c.amount <= :max');
            $parameters['max'] = $max;
        }


        return array_map('current', $qb->getQuery()->setParameters($parameters)->getResult());
    }