added filter for globalActivities in project collection (#3565)

This commit is contained in:
Kevin Papst
2022-10-01 23:25:33 +02:00
committed by GitHub
parent 1d445d9eb6
commit 1959d4d8df
4 changed files with 32 additions and 0 deletions

View File

@@ -367,6 +367,11 @@ class ProjectRepository extends EntityRepository
->setParameter('customer', $query->getCustomers());
}
if ($query->getGlobalActivities() !== null) {
$qb->andWhere($qb->expr()->eq('p.globalActivities', ':globalActivities'))
->setParameter('globalActivities', $query->getGlobalActivities(), Types::BOOLEAN);
}
// this is far from being perfect, possible enhancements:
// there could also be a range selection to be able to select all projects that were active between from and to
// begin = null and end = null