mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
Fix: [export][aggregator] group by user job, not by job
This commit is contained in:
parent
de5f818c5a
commit
050a4feab5
@ -40,11 +40,11 @@ final class JobAggregator implements AggregatorInterface
|
|||||||
|
|
||||||
public function alterQuery(QueryBuilder $qb, $data)
|
public function alterQuery(QueryBuilder $qb, $data)
|
||||||
{
|
{
|
||||||
if (!in_array('acpjob', $qb->getAllAliases(), true)) {
|
if (!in_array('acpuser', $qb->getAllAliases(), true)) {
|
||||||
$qb->leftJoin('acp.job', 'acpjob');
|
$qb->leftJoin('acp.user', 'acpuser');
|
||||||
}
|
}
|
||||||
|
|
||||||
$qb->addSelect('IDENTITY(acp.job) AS job_aggregator');
|
$qb->addSelect('IDENTITY(acpuser.userJob) AS job_aggregator');
|
||||||
$qb->addGroupBy('job_aggregator');
|
$qb->addGroupBy('job_aggregator');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user