Project

General

Profile

Actions

Bug #47688

closed

Sorting not respected for backend_layout and backend_layout_next_level dropdowns

Added by Frans Saris over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend User Interface
Target version:
-
Start date:
2013-04-29
Due date:
% Done:

100%

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

Description

Backend_layouts have a sortBy field but the pages TCA doesn't respect this for the backend_layout and backend_layout_next_level field.

To fix this add ORDER BY to the 'foreign_table_where' field:

change for both field:

'foreign_table_where' => 'AND ( ( ###PAGE_TSCONFIG_ID### = 0 AND ###STORAGE_PID### = 0 ) OR ( backend_layout.pid = ###PAGE_TSCONFIG_ID### OR backend_layout.pid = ###STORAGE_PID### ) OR ( ###PAGE_TSCONFIG_ID### = 0 AND backend_layout.pid = ###THIS_UID### ) ) AND backend_layout.hidden = 0',

in:

'foreign_table_where' => 'AND ( ( ###PAGE_TSCONFIG_ID### = 0 AND ###STORAGE_PID### = 0 ) OR ( backend_layout.pid = ###PAGE_TSCONFIG_ID### OR backend_layout.pid = ###STORAGE_PID### ) OR ( ###PAGE_TSCONFIG_ID### = 0 AND backend_layout.pid = ###THIS_UID### ) ) AND backend_layout.hidden = 0 ORDER BY backend_layout.sorting',


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #53873: Sorting of relation field (type=select)Closed2013-11-22

Actions
Actions

Also available in: Atom PDF