mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix geographical unit stat aggregator by course: show also the course if they are not located within a location
This commit is contained in:
parent
4d20a46717
commit
abebb79e8b
6
.changes/unreleased/Fixed-20231107-144039.yaml
Normal file
6
.changes/unreleased/Fixed-20231107-144039.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
kind: Fixed
|
||||
body: 'Export: fix "group accompanying period by geographical unit": take into account
|
||||
the accompanying periods when the period is not located within an unit'
|
||||
time: 2023-11-07T14:40:39.46483404+01:00
|
||||
custom:
|
||||
Issue: "185"
|
@ -83,7 +83,12 @@ final readonly class GeographicalUnitStatAggregator implements AggregatorInterfa
|
||||
'acp_geog_units'
|
||||
);
|
||||
|
||||
$qb->andWhere($qb->expr()->in('acp_geog_units.layer', ':acp_geog_unit_layer'));
|
||||
$qb->andWhere(
|
||||
$qb->expr()->orX(
|
||||
$qb->expr()->isNull('acp_geog_units'),
|
||||
$qb->expr()->in('acp_geog_units.layer', ':acp_geog_unit_layer')
|
||||
)
|
||||
);
|
||||
|
||||
$qb->setParameter('acp_geog_unit_layer', $data['level']);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user