mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
[export][activity] count activities only once if the activity is present
multiple times due to JOIN
This commit is contained in:
parent
4e82126bed
commit
01fb93e9e0
@ -90,7 +90,7 @@ class CountActivity implements ExportInterface, GroupedExportInterface
|
|||||||
$qb->join('activity.accompanyingPeriod', 'acp');
|
$qb->join('activity.accompanyingPeriod', 'acp');
|
||||||
}
|
}
|
||||||
|
|
||||||
$qb->select('COUNT(activity.id) as export_count_activity');
|
$qb->select('COUNT(DISTINCT activity.id) as export_count_activity');
|
||||||
|
|
||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user