Project

General

Profile

Actions

Bug #20654

closed

Field defined as "sortby" in TCA doesn't support versioning

Added by Sven Weiss over 15 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2009-06-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The field which I define in $TCA[$table]['ctrl']['sortby'] doesn't support versioning because it is hard coded to not support versioning. So it is not possible to publish a new sort order of elements.

In my case I want to give my editors the possibility to sort images in their workspace and then I want to publish it. But this doesn't work.

class.t3lib_tcemain.php - Line 4503:
...
// Find fields to keep
$keepFields = $this->getUniqueFields($table);
if ($TCA[$table]['ctrl']['sortby']) {
$keepFields[] = $TCA[$table]['ctrl']['sortby'];
}
...

On line 4540 there is the very curious reason:
// sortby is a "keepFields" which is why this will work...
(issue imported from #M11384)

Actions

Also available in: Atom PDF