[BUGFIX] RootlineUtility does not consider disablefield 00/28400/2
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:49:15 +0000 (21:49 +0100)
commitd5160a91eea9f150dc9a42a1a7e55c7c18e8de1c
tree5958968c423320169828797987af7ec9446af2c5
parent2a80fcdd502f267f1d2b3e82ad1d556404400c2a
[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/28400
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/core/Classes/Utility/RootlineUtility.php
typo3/sysext/core/Tests/Unit/Utility/RootlineUtilityTest.php