Project

General

Profile

Actions

Bug #63408

closed

Wrong rootline returned by RootlineUtility::generateRootlineCache()

Added by Christophe Monard almost 10 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2014-11-28
Due date:
% Done:

0%

Estimated time:
0.00 h
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
nightmare
Is Regression:
No
Sprint Focus:

Description

When a subpage is mark as Site Root (columns is_siteroot)
The generateRootlineCache do not take care of the is_siteroot field and generate rootline until pid=0.

--[0] TYPO3
----[1] Website 1 : is_siteroot = 1
----[2] Website 2 : is_siteroot = 1
----[3] Microsite (for site factory) : is_siteroot = 0
--------[4] microsite 1 : is_siteroot = 1
--------[5] microsite 2 : is_siteroot = 1

For pid 1 and 2 rootline stop at respectively : 1 and 2
For pid 4 and 5 rootline continu and return pid 3 as root.
Correct value should be respectively : 4 and 5

Correction:

in TYPO3\CMS\Core\Utility for the class : RootlineUtility:
modify function : generateRootlineCache
line 360 :
-             $parentUid = $page['pid'];
+             $parentUid = $page['is_siteroot'] == 1 ? 0 : $page['pid'];
Actions

Also available in: Atom PDF