Project

General

Profile

Actions

Bug #30486

closed

Typoscript select join broken

Added by Christof Rodejohann about 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-09-30
Due date:
% Done:

0%

Estimated time:
2.00 h
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

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.


Related issues 2 (0 open2 closed)

Is duplicate of TYPO3 Core - Bug #29783: getQuery: fields explicilty added on select <table>.* : Error: ambigious parameter uidClosedBjörn Pedersen2011-10-11

Actions
Follows TYPO3 Core - Bug #17284: no content in workspace preview when using select.selectFieldsClosedBenni Mack2007-05-07

Actions
Actions

Also available in: Atom PDF