Issue Bug Closed

#30486Typoscript select join broken

Christof Rodejohann 09/30/11, 17:00 updated 10/02/18, 12:19

Description

The solution to #17284 has unwanted side effects.

You can find the following code in line 7421 in file typo3/sysext/cms/tslib/class.tslib_content.php

$queryParts['SELECT'] .= ',uid,pid';

If selecFields is set, any select query gets ‘,uid,pid’ added. This breaks any typoscript join. When using a two tables join and the bare column ‘uid’ is added to field list, it is always ambiguous and results in a mysql error.

This might be relevant to other releases to (4.6, 4.5, 4.4), because the patch was applied there as well.

Reviews 1