Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sg_routes
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
TYPO3
sg_routes
Commits
496ca4d4
Commit
496ca4d4
authored
Jan 03, 2019
by
Kevin Ditscheid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUGFIX] Fix the root path selection of the backend module
parent
84dca007
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
Classes/Controller/RouteController.php
Classes/Controller/RouteController.php
+8
-1
Resources/Private/Backend/Partials/SelectRoot.html
Resources/Private/Backend/Partials/SelectRoot.html
+5
-6
No files found.
Classes/Controller/RouteController.php
View file @
496ca4d4
...
...
@@ -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
)
{
...
...
Resources/Private/Backend/Partials/SelectRoot.html
View file @
496ca4d4
...
...
@@ -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>
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