[BUGFIX] Fix database query in StaticRecordCollection 32/53132/3
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Sat, 8 Jul 2017 17:44:10 +0000 (19:44 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Fri, 14 Jul 2017 07:14:41 +0000 (09:14 +0200)
commitca5b8db7739f777b0d393ed2c4c72a6377a0ff3c
tree7f4219cf4e8e2ffc3c64227b259448a19ec550cd
parent9ebcd4d5351e1962f94f603a21cdfad2a8af4af2
[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/53132
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/core/Classes/Collection/StaticRecordCollection.php