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)); } } }