fix: relax date constraints of assignment filtering
addresses #869brd1gn
This commit is contained in:
@@ -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