Si vous constatez la perte de tickets, de commentaires ou de projets, veuillez consulter la page https://status.framasoft.org/incident/626.

Commit 4c7673f3 authored by Julien Fastré's avatar Julien Fastré

fix bug when extracting activities without filter / aggregators

introducing persons
parent 3e786f2e
......@@ -4,3 +4,9 @@ Version 1.5.1
- [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')
->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'))
->setParameter('centers', $centers)
;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment