mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 18:13:48 +00:00
really do not show thirdparty which are not active
This commit is contained in:
@@ -34,6 +34,12 @@ final class ThirdPartyACLAwareRepository implements ThirdPartyACLAwareRepository
|
||||
{
|
||||
$qb = $this->thirdPartyRepository->createQueryBuilder('tp');
|
||||
|
||||
$qb->leftJoin('tp.parent', 'parent')
|
||||
->andWhere($qb->expr()->andX(
|
||||
'tp.active = \'TRUE\'',
|
||||
$qb->expr()->orX($qb->expr()->isNull('parent'), 'parent.active = \'TRUE\'')
|
||||
));
|
||||
|
||||
if (null !== $filterString) {
|
||||
$qb->andWhere($qb->expr()->like('tp.canonicalized', 'LOWER(UNACCENT(:filterString))'))
|
||||
->setParameter('filterString', '%' . $filterString . '%');
|
||||
|
Reference in New Issue
Block a user