[BUGFIX] Fetch related records for existing uids only 81/31781/2
authorJo Hasenau <info@cybercraft.de>
Thu, 24 Jul 2014 18:52:12 +0000 (20:52 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Sat, 2 Aug 2014 10:59:04 +0000 (12:59 +0200)
commit169f8b912751998b72236be85f1ff77e092ae8a2
treec9ef3e704bdff9becb31c58ea177372730b8330b
parent92456f6539ee6b8f76345b9b158f963f572ce390
[BUGFIX] Fetch related records for existing uids only

Before fetching related records from a foreign table, we must ensure
that there is a uid to be considered, since otherwise we will fetch
any record having a 0 value for that field.

There are method calls in the core, that don't provide a uid, so the
default value 0 is used, i.e. when fetching children of translated
gridelements, causing memory outage when tt_content is > 10000 records.

Resolves: #60494
Releases: 6.3, 6.2
Change-Id: I1105964f98f79074bb37dc1921180b493fac4bc6
Reviewed-on: http://review.typo3.org/31781
Reviewed-by: Sascha Egerer <sascha@sascha-egerer.de>
Tested-by: Sascha Egerer <sascha@sascha-egerer.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/backend/Classes/Utility/BackendUtility.php