fix: relax date constraints of assignment filtering
addresses #869brd1gn
This commit is contained in:
1 parent
cf4d4a3566
commit
1c0482d2f7
1 file changed
+4
-4
@@ -38,12 +38,12 @@ class DispositionRepository extends ServiceEntityRepository
|
||||
$qb->expr()->neq('assignment.status', ':status'),
|
||||
$qb->expr()->orX(
|
||||
$qb->expr()->andX(
|
||||
$qb->expr()->isNull('assignment.dateFrom'),
|
||||
$qb->expr()->gte('destination.dateFrom', ':date')
|
||||
$qb->expr()->isNull('assignment.dateTo'),
|
||||
$qb->expr()->gte('destination.dateTo', ':date')
|
||||
),
|
||||
$qb->expr()->andX(
|
||||
$qb->expr()->isNotNull('assignment.dateFrom'),
|
||||
$qb->expr()->gte('assignment.dateFrom', ':date')
|
||||
$qb->expr()->isNotNull('assignment.dateTo'),
|
||||
$qb->expr()->gte('assignment.dateTo', ':date')
|
||||
)
|
||||
)
|
||||
))
|
||||
|
||||
Reference in new issue
Block a user