[BUGFIX] Fix database query in StaticRecordCollection 69/53469/2
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Sat, 8 Jul 2017 17:44:10 +0000 (19:44 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 14 Jul 2017 08:17:00 +0000 (10:17 +0200)
commit87fc0aaa315f34f64f71b4a1a28d45f1fdee3dba
treea2fe0ba9c8372432b5f8a285e9f00e6baf1fd399
parent1814e43aab8b987bd9d87fbd68fac402b9c7f24b
[BUGFIX] Fix database query in StaticRecordCollection

Fix the query to fetch collection records to use an alias for the
foreign table instead of the MM tables and properly join on uid_local
and uid_foreign.

Change-Id: Idf9bacd84f4a2980470183ede034e7edaa489a3f
Resolves: #81353
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/53469
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Collection/StaticRecordCollection.php