From d6b3ba48c00bfeaba31344bb5b4ad7994c54b4f8 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 28 Jul 2022 12:05:42 +0200 Subject: [PATCH] fix the possibility to filter with multiple jobs or scopes --- .../ChillPersonBundle/Export/Filter/ReferrerJobFilter.php | 2 +- .../ChillPersonBundle/Export/Filter/ReferrerScopeFilter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/ReferrerJobFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/ReferrerJobFilter.php index cce0a9318..fe9e51b27 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/ReferrerJobFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/ReferrerJobFilter.php @@ -75,7 +75,7 @@ class ReferrerJobFilter implements FilterInterface $qb->join('acpw.referrers', 'r'); $where = $qb->getDQLPart('where'); - $clause = $qb->expr()->eq('r.userJob', ':userjob'); + $clause = $qb->expr()->in('r.userJob', ':userjob'); if ($where instanceof Andx) { $where->add($clause); diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/ReferrerScopeFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/ReferrerScopeFilter.php index c895276f1..0d4a22532 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/ReferrerScopeFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/ReferrerScopeFilter.php @@ -74,7 +74,7 @@ class ReferrerScopeFilter implements FilterInterface $qb->join('acpw.referrers', 'r'); $where = $qb->getDQLPart('where'); - $clause = $qb->expr()->eq('r.mainScope', ':scope'); + $clause = $qb->expr()->in('r.mainScope', ':scope'); if ($where instanceof Andx) { $where->add($clause);