mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-11-04 11:18:25 +00:00 
			
		
		
		
	[export][person] Fixed: fixed inconsistency in requestor query
A condition was not present in a subquery, causing to take all courses into account, not the one concerned by the filter
This commit is contained in:
		@@ -70,10 +70,6 @@ final class RequestorFilter implements FilterInterface
 | 
			
		||||
            case 'other_person':
 | 
			
		||||
                $expr = $this->em->getExpressionBuilder();
 | 
			
		||||
 | 
			
		||||
                if (!in_array('acppart', $qb->getAllAliases(), true)) {
 | 
			
		||||
                    $qb->join('acp.participations', 'acppart');
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                $clause = $expr->andX(
 | 
			
		||||
                    $expr->isNotNull('acp.requestorPerson'),
 | 
			
		||||
                    $expr->notIn(
 | 
			
		||||
@@ -85,6 +81,7 @@ final class RequestorFilter implements FilterInterface
 | 
			
		||||
                            ->join('acp2.participations', 'acppart2')
 | 
			
		||||
                            ->select('identity(acp2.requestorPerson)')
 | 
			
		||||
                            ->where($expr->eq('acp2.requestorPerson', 'acppart2.person'))
 | 
			
		||||
                            ->andWhere('acp2.id = acp.id')
 | 
			
		||||
                            ->getDQL()
 | 
			
		||||
                    )
 | 
			
		||||
                );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user