Bug #99012
closedPHP 8 undefined array access when fetching Page Tree Configuration
100%
Description
unsetting a standard-doktype in `$GLOBALS['TCA']['pages']['columns']['doktype']['config']['items']` leads to "Undefined array key" PHP-Warning
e.g. unsetting mount-point doktype (7)
`unset ($GLOBALS['TCA']['pages']['columns']['doktype']['config']['items']5);`
leads to
`PHP Warning: Undefined array key 7 in /var/www/html/vendor/typo3/cms-backend/Classes/Controller/Page/TreeController.php line 241`
unsetted doktypes should also not appear in Page Tree Toolbar
(TYPO3 v11 and v12, PHP 8.1)
Updated by Gerrit Code Review about 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76452
Updated by Gerrit Code Review about 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76452
Updated by Gerrit Code Review about 2 years ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76452
Updated by Gerrit Code Review about 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76417
Updated by Anonymous about 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 12a5f6dd6cd50f81a20134542cf9c5a5b55dbeda.