fix: relax date constraints of assignment filtering

addresses #869brd1gn
This commit is contained in:
Björn Fromme
2026-03-15 12:42:27 +01:00
parent cf4d4a3566
commit 1c0482d2f7
+4 -4
View File
@@ -38,12 +38,12 @@ class DispositionRepository extends ServiceEntityRepository
$qb->expr()->neq('assignment.status', ':status'), $qb->expr()->neq('assignment.status', ':status'),
$qb->expr()->orX( $qb->expr()->orX(
$qb->expr()->andX( $qb->expr()->andX(
$qb->expr()->isNull('assignment.dateFrom'), $qb->expr()->isNull('assignment.dateTo'),
$qb->expr()->gte('destination.dateFrom', ':date') $qb->expr()->gte('destination.dateTo', ':date')
), ),
$qb->expr()->andX( $qb->expr()->andX(
$qb->expr()->isNotNull('assignment.dateFrom'), $qb->expr()->isNotNull('assignment.dateTo'),
$qb->expr()->gte('assignment.dateFrom', ':date') $qb->expr()->gte('assignment.dateTo', ':date')
) )
) )
)) ))