Commit b8cadb58 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix language filter in mail queue

parent 8e63416c
......@@ -89,7 +89,10 @@ class MailRepository extends AbstractRepository {
$constraintsAnd[] = $query->equals('template_name', $filters['filterTemplate']);
}
$constraintsAnd[] = $query->equals('sys_language_uid', (int) $filters['filterLanguage']);
if ($filters['filterLanguage']) {
$constraintsAnd[] = $query->equals('sys_language_uid', (int) $filters['filterLanguage']);
}
$constraintsOr = [];
if ($filters['filterSearch']) {
$search = '%' . $filters['filterSearch'] . '%';
......
......@@ -34,6 +34,7 @@
multiple="0"
size="1"
property="filterLanguage"
prependOptionLabel="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages')}"
optionValueField="languageId"
optionLabelField="title"
options="{languages}"
......
Markdown is supported
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