[BUGFIX] RootlineUtility does not consider disablefield 77/28277/4
authorChristian Reiter <cr@cxd.de>
Tue, 11 Mar 2014 19:50:01 +0000 (20:50 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 14 Mar 2014 20:34:34 +0000 (21:34 +0100)
commit6227339c02b820710d0dccda90a854896895fe5c
tree9182182de172bd08991cfd0c58efe3c0815fa695
parentf6f52eacfb8778e25351760b1dea9b52823272c4
[BUGFIX] RootlineUtility does not consider disablefield

Make sure RootlineUtility::enrichWithRelationFields() respects
the setting of $TCA[$table]['ctrl']['enablecolumns']['disabled'] when
fetching foreign data for the rootline.

Otherwise hidden relations from sys_file_reference are added to the
rootline and cause exceptions in the frontend, instead of being ignored.

Resolves: #56150
Releases: 6.2, 6.1
Change-Id: I21917fec1407a10818058da8ea879b0bb39441a4
Reviewed-on: https://review.typo3.org/28277
Tested-by: Wouter Wolters
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/core/Classes/Utility/RootlineUtility.php
typo3/sysext/core/Tests/Unit/Utility/RootlineUtilityTest.php