Issue Bug Closed

#77663UserTSConfig options.pageTree.altElementBrowserMountPoints with a non existing pid throws exception

Alex Kellner 08/29/16, 14:27 updated 10/02/18, 11:07

Description

If you are using the User TSConfig altElementBrowserMountPoints, you can enable crosslinking to not allowed pages.
But if you are defining a non-existing pid (or if someone deletes a defined page), an error is shown:

Argument 2 passed to TYPO3\CMS\Core\Imaging\IconFactory::getIconForRecord() must be of the type array, null given, called in /Web/typo3_src/typo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php on line 672

Our TsConfig example:

options {
    pageTree {
        altElementBrowserMountPoints = 1, 2, 9999999
    }
}

TYPO3 7.6.10

Reviews 2