FIX [document][list] 'or' query statements were not added to query for rendez vous documents causing all rendez-vous documents from all users to appear in dossiers that had a parcours. 'Or' statements add to where clause

This commit is contained in:
Julie Lenaerts 2023-07-20 10:52:22 +02:00
parent 15bf4d6d6d
commit 767ed89f80

View File

@ -147,6 +147,9 @@ final readonly class AccompanyingPeriodCalendarGenericDocProvider implements Gen
return $query; return $query;
} }
$query->addWhereClause(implode(" OR ", $or), $orParams, $orTypes);
return $this->addWhereClausesToQuery($query, $startDate, $endDate, $content); return $this->addWhereClausesToQuery($query, $startDate, $endDate, $content);
} }
@ -185,6 +188,8 @@ final readonly class AccompanyingPeriodCalendarGenericDocProvider implements Gen
); );
} }
dump($query);
return $query; return $query;
} }