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

[BUGFIX] Only select root pages in default language

parent d4e72033
......@@ -85,9 +85,13 @@ class BackendService {
$queryBuilder->select('*')
->from('pages')
->where(
$queryBuilder->expr()->eq(
'is_siteroot',
1
$queryBuilder->expr()->andX(
$queryBuilder->expr()->eq(
'sys_language_uid', $queryBuilder->createNamedParameter(0, \PDO::PARAM_INT)
),
$queryBuilder->expr()->eq(
'is_siteroot', $queryBuilder->createNamedParameter(1, \PDO::PARAM_INT)
)
)
);
$rows = $queryBuilder->execute()->fetchAll();
......
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