[BUGFIX] RootlineUtility only resolves defined relation fields 15/56015/7
authorBenni Mack <benni@typo3.org>
Mon, 5 Mar 2018 18:49:50 +0000 (19:49 +0100)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Tue, 6 Mar 2018 06:43:11 +0000 (07:43 +0100)
commitd3c12b7945f200c0cb0ac36eaed4a8bad1028928
tree70cee6e771e66409954ab7159d0c0ae4ed7bb12b
parent7ef327081a503fc2e4e60b6d2cb413943f68469e
[BUGFIX] RootlineUtility only resolves defined relation fields

The RootlineUtility first selects all fields, which have been added
via the config option "addRootLineFields". After that, it iterates
over all(!) columns that are defined as relation.

The change modifies the loop so that only relations are resolved for
field pages.media (predefined) and those fields that have been added
to $GLOBALS[TYPO3_CONF_VARS][FE][addRootLineFields].

Resolves: #84144
Releases: master, 8.7
Change-Id: I3150f7cdd14aff3f25d5070f4ce190d510ba3614
Reviewed-on: https://review.typo3.org/56015
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/core/Classes/Utility/RootlineUtility.php
typo3/sysext/core/Documentation/Changelog/master/Important-84144-RootlineUtilityIsEnrichingOnlyProperlySelectedRelationalDatabaseFields.rst [new file with mode: 0644]