mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
fix the possibility to filter with multiple jobs or scopes
This commit is contained in:
parent
13b15f5057
commit
d6b3ba48c0
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user