mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-26 16:45:01 +00:00
[export][activity] count activities only once if the activity is present
multiple times due to JOIN
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user