Skip to content

Commit 94de608

Browse files
raziel057tlallement
andauthored
Fix returning all data when no result found (#458)
Co-authored-by: tlallement <tlallement@incert.lu>
1 parent be973b2 commit 94de608

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Entity/TransUnitRepository.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ protected function addTranslationFilter(QueryBuilder $builder, array $locales =
210210

211211
if ((is_countable($ids) ? count($ids) : 0) > 0) {
212212
$builder->andWhere($builder->expr()->in('tu.id', $ids));
213+
} else {
214+
$builder->andWhere($builder->expr()->eq(1, 0));
213215
}
214216
}
215217
}

0 commit comments

Comments
 (0)