[export] fix date range selection on filtre and grouping "by status of the course at date" on accompanying periods

This commit is contained in:
Julien Fastré 2023-10-19 11:44:53 +02:00
parent 981dc6a959
commit 4c9ea740c8
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
3 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,6 @@
kind: Fixed
body: '[export] fix date range selection on filter and grouping "by status of the
course at date", on accompanying periods'
time: 2023-10-19T11:43:50.455829748+02:00
custom:
Issue: "177"

View File

@ -49,7 +49,7 @@ final readonly class StepAggregator implements AggregatorInterface
$qb->expr()->lte(self::A.'.startDate', ':'.self::P),
$qb->expr()->orX(
$qb->expr()->isNull(self::A.'.endDate'),
$qb->expr()->lt(self::A.'.endDate', ':'.self::P)
$qb->expr()->gt(self::A.'.endDate', ':'.self::P)
)
)
)

View File

@ -61,7 +61,7 @@ class StepFilterOnDate implements FilterInterface
$qb->expr()->lte(self::A.'.startDate', ':'.self::P),
$qb->expr()->orX(
$qb->expr()->isNull(self::A.'.endDate'),
$qb->expr()->lt(self::A.'.endDate', ':'.self::P)
$qb->expr()->gt(self::A.'.endDate', ':'.self::P)
)
)
)