[BUGFIX] Wrong DB fields usage in TCEmain
authorFelix Nagel <info@felixnagel.com>
Wed, 16 May 2012 13:11:52 +0000 (15:11 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 20 May 2012 11:24:01 +0000 (13:24 +0200)
commit1ffe481f1ce9de79781d46cac8adaf321062b3b0
treecf570858eca36646da69f7edd8ccf4e2f84d31fe
parent5c48fae06ce83e76a9181e2d11d24a755d2fef9a
[BUGFIX] Wrong DB fields usage in TCEmain

The fix for issue #35260 introduced a new bug in method
t3lib_TCEmain::getPreviousLocalizedRecordUid() by adding a
field in a query in the wrong place. In particular, this breaks
the localization of tt_content elements used with IRRE.

This patch fixes the problem by separating the list of fields
used for selecting and for sorting.

Change-Id: Idac10ded43e817f22df34e5156b424829d4601c1
Fixes: #37221
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/11292
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_tcemain.php