[export][person] fix alias name for person in CountPersonWithAccompanyingCourse export

This commit is contained in:
Julien Fastré 2022-09-23 21:55:00 +02:00
parent 6cdb3033db
commit 75713af0e0

View File

@ -95,10 +95,10 @@ class CountPersonWithAccompanyingCourse implements ExportInterface, GroupedExpor
}
if (!in_array('partperson', $qb->getAllAliases(), true)) {
$qb->join('acppart.person', 'partperson');
$qb->join('acppart.person', 'person');
}
$qb->select('COUNT(DISTINCT partperson.id) AS export_result');
$qb->select('COUNT(DISTINCT person.id) AS export_result');
return $qb;
}