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
3ab75781
Commit
3ab75781
authored
May 10, 2021
by
Kevin Ditscheid
Browse files
[BUGFIX] Fix language filter in the mail queue
parent
d33948d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Classes/Domain/Repository/MailRepository.php
Classes/Domain/Repository/MailRepository.php
+2
-1
No files found.
Classes/Domain/Repository/MailRepository.php
View file @
3ab75781
...
...
@@ -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'
]
.
'%'
;
...
...
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