[BUGFIX] RootlineUtility wrongly handles group-type fields 25/32725/2
authorFrancois Suter <francois@typo3.org>
Tue, 15 Apr 2014 19:48:16 +0000 (21:48 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Thu, 11 Sep 2014 14:29:59 +0000 (16:29 +0200)
commit7eab013e3908ab8b949dadd68ff7af28bba0a004
tree19d6fa8cb18be8eafee6f3d427d64b73d90da9f4
parentd541123a9f8257fd63804822d91e7030e0361692
[BUGFIX] RootlineUtility wrongly handles group-type fields

\TYPO3\CMS\Core\Utility\RootlineUtility::enrichWithRelationFields()
tries to resolve relations to the current page record, including
fields with MM-relations. But it wrongly tests only for the
"foreign_table" property, whereas group-type fields will use the
"allowed" property.

This patch checks for "allowed" first and falls back on
"foreign_table". Furthermore a check is added to ensure the final
implode is indeed working on an array.

Resolves: #50396
Releases: 6.3, 6.2, 6.1
Change-Id: I43427061a5051298a25e45584aa995846ebb877c
Reviewed-on: http://review.typo3.org/32725
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/Utility/RootlineUtility.php