Bug #20654

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

Added by Sven Weiss about 10 years ago. Updated over 3 years ago.

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

0%

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)

History

#1 Updated by Oliver Hader about 8 years ago

  • Assignee set to Oliver Hader
  • Target version deleted (0)

#2 Updated by Susanne Moog about 8 years ago

Additional Task:
If you have translated elements and sort them (especially if they are connected to their default language versions) you'll get a lot of funny effects. Try it: Create three default elements, translate them, and sort them up and down a bit. After some weird circumstances the sort order of the default elements changes, the translated elements jump in the default column, and everything gets really strange...

#3 Updated by Tolleiv Nietsch over 7 years ago

  • Status changed from New to Accepted

#4 Updated by Michael Stucki over 5 years ago

  • Category set to Workspaces

#5 Updated by Michael Stucki over 5 years ago

  • Project changed from Workspaces & Versioning to TYPO3 Core
  • Category changed from Workspaces to Workspaces

#6 Updated by Stefan Neufeind over 4 years ago

  • Is Regression set to No

Would be great to have this solved. Sorting elements inside a workspace is quite a common task imho (maybe during preparing a site for relaunch or so).

#7 Updated by Mathias Schreiber over 4 years ago

  • Target version set to 7.5

#8 Updated by Benni Mack almost 4 years ago

  • Target version changed from 7.5 to 7 LTS

#9 Updated by Mathias Schreiber over 3 years ago

  • Target version deleted (7 LTS)

Also available in: Atom PDF