Skip to content

Commit

Permalink
Fix returning all data when no result found (#458)
Browse files Browse the repository at this point in the history
Co-authored-by: tlallement <[email protected]>
  • Loading branch information
raziel057 and tlallement committed Jun 27, 2024
1 parent be973b2 commit 94de608
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 94de608

Please sign in to comment.