Commit 3ab75781 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix language filter in the mail queue

parent d33948d4
......@@ -72,6 +72,7 @@ class MailRepository extends AbstractRepository {
*/
public function findAllEntries(int $pid = 0, int $limit = NULL, array $filters = []): QueryResultInterface {
$query = $this->createQuery();
$query->getQuerySettings()->setRespectSysLanguage(FALSE);
if ($limit) {
$query->setLimit($limit);
}
......@@ -88,7 +89,7 @@ class MailRepository extends AbstractRepository {
$constraintsAnd[] = $query->equals('template_name', $filters['filterTemplate']);
}
$constraintsAnd[] = $query->equals('sys_language_uid', $filters['filterLanguage']);
$constraintsAnd[] = $query->equals('sys_language_uid', (int) $filters['filterLanguage']);
$constraintsOr = [];
if ($filters['filterSearch']) {
$search = '%' . $filters['filterSearch'] . '%';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment