Skip to content

Commit

Permalink
fix return of empty translations when filtering with translations
Browse files Browse the repository at this point in the history
  • Loading branch information
abenamier committed Jun 5, 2024
1 parent 85a4e1a commit 37781ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Entity/TransUnitRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
Expand Down

0 comments on commit 37781ad

Please sign in to comment.