[Activity][Export] Fixed: use leftJoin on aggregators

This commit is contained in:
2022-09-22 16:58:29 +02:00
parent 4fe4f6a877
commit b9d4b5650b
9 changed files with 54 additions and 91 deletions

View File

@@ -61,14 +61,15 @@ class ActivityUserAggregator implements AggregatorInterface
public function getLabels($key, $values, $data): Closure
{
// preload users at once
$this->userRepository->findBy(['id' => $values]);
return function ($value) {
return function ($value) {
if ('_header' === $value) {
return 'Activity user';
}
if (null === $value) {
return '';
}
$u = $this->userRepository->find($value);
return $this->userRender->renderString($u, []);