From 37781ad47e06bd95c2897624d3cab96e18630d9d Mon Sep 17 00:00:00 2001 From: abenamier Date: Wed, 5 Jun 2024 12:58:10 +0200 Subject: [PATCH] fix return of empty translations when filtering with translations --- Entity/TransUnitRepository.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Entity/TransUnitRepository.php b/Entity/TransUnitRepository.php index 084aa820..75e255d3 100644 --- a/Entity/TransUnitRepository.php +++ b/Entity/TransUnitRepository.php @@ -210,6 +210,8 @@ protected function addTranslationFilter(QueryBuilder $builder, array $locales = if ((is_countable($ids) ? count($ids) : 0) > 0) { $builder->andWhere($builder->expr()->in('tu.id', $ids)); + } else { + $builder->andWhere($builder->expr()->eq(1, 0)); } } }