Commit 496ca4d4 authored by Kevin Ditscheid's avatar Kevin Ditscheid

[BUGFIX] Fix the root path selection of the backend module

parent 84dca007
......@@ -202,7 +202,14 @@ class RouteController extends ActionController {
$rootOptionRows = $queryBuilder->select('*')
->from('pages')
->where(
$queryBuilder->expr()->eq('is_siteroot', $queryBuilder->createNamedParameter(1, \PDO::PARAM_INT))
$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)
)
)
)->orderBy('sorting')->execute()->fetchAll();
$rootOptions = [];
foreach ($rootOptionRows as $row) {
......
......@@ -10,11 +10,10 @@
<f:for each="{pages}" as="page">
<tr data-uid="{page.uid}">
<td nowrap="nowrap" class="col-title">
<a href="#" onclick="sgRouteGoToPage({page.uid}, '{page.path}'); return false;">
<f:format.raw>
<sg:backend.icon table="pages" row="{page}" clickMenu="0" /> {page._thePathFull}
</f:format.raw>
</a>
<f:link.action action="list" additionalParams="{id: page.uid}">
<core:iconForRecord table="pages" row="{page}" />
{page._thePathFull}
</f:link.action>
</td>
</tr>
</f:for>
......@@ -22,4 +21,4 @@
</table>
</div>
</div>
</f:if>
\ No newline at end of file
</f:if>
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