Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
TYPO3
sg_mail
Commits
b8cadb58
Commit
b8cadb58
authored
May 25, 2021
by
Kevin Ditscheid
Browse files
[BUGFIX] Fix language filter in mail queue
parent
8e63416c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Classes/Domain/Repository/MailRepository.php
Classes/Domain/Repository/MailRepository.php
+4
-1
Resources/Private/Partials/Queue/Filter.html
Resources/Private/Partials/Queue/Filter.html
+1
-0
No files found.
Classes/Domain/Repository/MailRepository.php
View file @
b8cadb58
...
...
@@ -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'
]
.
'%'
;
...
...
Resources/Private/Partials/Queue/Filter.html
View file @
b8cadb58
...
...
@@ -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}"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment