Project

General

Profile

Actions

Bug #96065

closed

selectTree with ORDER BY using DBAL compatible quoting produces SQL errors

Added by S P almost 3 years ago. Updated almost 3 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2021-11-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Steps to reproduce:
  1. have a selectTree TCA field ( sys_category for example, but it happens with other tables as well)
  2. have a foreign_table_where condition containing for example ORDER BY {#sys_category}.{#title} ASC (or whetever your foreign table/field is), it does not matter if the foreign_table_where contains any more conditions or just the order statement alone
  3. open this record in the backend -> tree view is empty, saving or closing the edit panel shows red SQL error bar

Discovered on v10, probably valid on others as well.

Actions

Also available in: Atom PDF