Bug #50310

DataHandler fails to correctly re-sort (content) elements after moving one to top

Added by Bernhard Schmitt about 6 years ago. Updated almost 2 years ago.

Status:
Accepted
Priority:
Must have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2013-07-22
Due date:
% Done:

0%

TYPO3 Version:
6.1
PHP Version:
5.3
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

Tested with v6.1.1, seems to affect 4.7.x too.

This occurs using drag&drop as well as calling the DataHandler itself.

While moving an element to top, its sorting will be set to 0 (the return value of getSortNumber called in line 3512), but the other elements' sorting is not updated. So if you move all elements to the top one after another, they all end up having sorting 0 and will be sorted by their uid instead.

Moving any one of those elements >down< will release the lock by reassigning valid sorting values to all affected content elements.

Best,
Bernhard

History

#1 Updated by Philipp Gampe about 6 years ago

  • Status changed from New to Accepted
  • Target version set to next-patchlevel
  • Complexity set to easy

Can you create a patch based on the code for moving an element down? http://wiki.typo3.org/Git

#2 Updated by Mathias Schreiber over 4 years ago

  • Target version changed from next-patchlevel to 7.4 (Backend)
  • Complexity changed from easy to medium
  • Is Regression set to No

#3 Updated by Susanne Moog about 4 years ago

  • Target version changed from 7.4 (Backend) to 7.5

#4 Updated by Benni Mack almost 4 years ago

  • Target version deleted (7.5)

#5 Updated by Andreas Wolf almost 2 years ago

Is this probably a duplicate of/related to #68040?

Also available in: Atom PDF