Commit d082f5e3 authored by Frank Nägler's avatar Frank Nägler Committed by Andreas Fernandez
Browse files

[BUGFIX] Allow sorting of pages on root level

This patch takes care of a missing id in the request, which is the case
for the rootpage.

Resolves: #98392
Releases: main, 11.5
Change-Id: Ifc428a3621e80fab49c766a64d326d5c95d4d8d3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75801


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 1d9e8248
......@@ -51,7 +51,7 @@ class SortSubPagesController
{
$view = $this->moduleTemplateFactory->create($request);
$backendUser = $this->getBackendUser();
$parentPageUid = (int)$request->getQueryParams()['id'];
$parentPageUid = (int)($request->getQueryParams()['id'] ?? 0);
// Show only if there is a valid page and if this page may be viewed by the user
$pageInformation = BackendUtility::readPageAccess($parentPageUid, $backendUser->getPagePermsClause(Permission::PAGE_SHOW));
......
Supports Markdown
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