mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	Fix: [export][aggregator] group by user job, not by job
This commit is contained in:
		| @@ -40,11 +40,11 @@ final class JobAggregator implements AggregatorInterface | ||||
|  | ||||
|     public function alterQuery(QueryBuilder $qb, $data) | ||||
|     { | ||||
|         if (!in_array('acpjob', $qb->getAllAliases(), true)) { | ||||
|             $qb->leftJoin('acp.job', 'acpjob'); | ||||
|         if (!in_array('acpuser', $qb->getAllAliases(), true)) { | ||||
|             $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'); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user