Bug #22710
closedtslib_fe::getPagesTSconfig wrong order of rootline TS
100%
Description
If you set some pageTSConfig on a higher level page in the rootline and overwrite that value in a lower level page the value from the HIGHER level will be delivered by tslib_fe::getPagesTSconfig if you call that method on the lower-level page.
Correct would be to deliver the value from the lower level page. This is done perfectly in the corresponding method t3lib_befunc::getPagesTSconfig for the BE.
The little difference: t3lib_befunc::getPagesTSconfig has the additional line 1334: ksort($rootLine); // Order correctly
which re-sorts the rootline. This line has to be inserted into tslib_fe::getPagesTSconfig also as line 4440 somethin like:
$rootLine=$this->rootLine;
ksort($rootLine);
//while(list($k,$v)=each($this->rootLine)) {
while(list($k,$v)=each($rootLine)) {
(issue imported from #M14471)
Files
Updated by Sven Burkert over 11 years ago
- Target version set to 4.5.24
TYPO3 Version 4.5.23 is also affected by this bug.
Updated by Mathias Schreiber almost 10 years ago
- Target version changed from 4.5.24 to 7.1 (Cleanup)
- Is Regression set to No
Updated by Benni Mack over 9 years ago
- Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
Updated by Gerrit Code Review over 9 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41798
Updated by Gerrit Code Review over 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41798
Updated by Gerrit Code Review over 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41798
Updated by Daniel Goerz over 9 years ago
Steps to reproduce:
1. Install EXT:pagetsconfig
2. Create a new PageTree wit at least two levels.
3. Create a new root TypoScript Template record on the root page of the new tree.
4. Remove the autogenerated lines from setup.
5. Include the static template of EXT:pagetsconfig
6. Set the PageTSConfig key "test" to something different in the settings of each page of the tree (Resources tab).
7. View the output in the view module or the frontend.
Updated by Daniel Goerz over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Daniel Goerz over 9 years ago
- Target version changed from 7.5 to 7.4 (Backend)
- Sprint Focus set to Stabilization Sprint
Updated by Daniel Goerz over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e660968f8043999c73c7348ee7a4433bb8a0bb91.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed