FEATURE [calendar][docs] fix query to display rendez-vous documents from person and parcours contexts

This commit is contained in:
Julie Lenaerts 2023-06-01 13:09:51 +02:00
parent 5dc1cbce48
commit 7eb4fb4e56

View File

@ -98,13 +98,6 @@ final class PersonCalendarGenericDocProvider implements GenericDocForPersonProvi
)
);
$query->addWhereClause(
sprintf('calendar.%s = ?',
$calendarMetadata->getAssociationMapping('person')['joinColumns'][0]['name']),
[$person->getId()],
[Types::INTEGER]
);
// get the documents associated with accompanying periods in which person participates
$or = [];
$orParams = [];