mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
fix bug when extracting activities without filter / aggregators
introducing persons
This commit is contained in:
parent
3e786f2e18
commit
4c7673f3fd
@ -4,3 +4,9 @@ Version 1.5.1
|
|||||||
|
|
||||||
- [report activity count] fix error: do not show centers which are not selected in results.
|
- [report activity count] fix error: do not show centers which are not selected in results.
|
||||||
|
|
||||||
|
`master branch`
|
||||||
|
==============
|
||||||
|
|
||||||
|
- [report activity]: add aggregator for activity users
|
||||||
|
- fix bug: error when extracting activities without filter / aggregators selecting persons
|
||||||
|
|
||||||
|
@ -73,12 +73,9 @@ class CountActivity implements ExportInterface
|
|||||||
|
|
||||||
$qb->select('COUNT(activity.id) as export_count_activity')
|
$qb->select('COUNT(activity.id) as export_count_activity')
|
||||||
->from('ChillActivityBundle:Activity', 'activity')
|
->from('ChillActivityBundle:Activity', 'activity')
|
||||||
|
->join('activity.person', 'person')
|
||||||
;
|
;
|
||||||
|
|
||||||
if (in_array('person', $requiredModifiers)) {
|
|
||||||
$qb->join('activity.person', 'person');
|
|
||||||
}
|
|
||||||
|
|
||||||
$qb->where($qb->expr()->in('person.center', ':centers'))
|
$qb->where($qb->expr()->in('person.center', ':centers'))
|
||||||
->setParameter('centers', $centers)
|
->setParameter('centers', $centers)
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user