FIX #355 Sorting in pageinated lists

If a many_many relation with the sort in an many_many_extraField has an item draged to another page the resulting sort
is wrong. This was caused by the handleMoveToPage function not respecting the original sort of the list.
This commit is contained in:
johannes.hammersen 2024-09-21 16:58:17 +02:00
parent 54b5fc1483
commit fbf7b864d5

View File

@ -500,7 +500,7 @@ class GridFieldOrderableRows extends RequestHandler implements
$move = $request->postVar('move');
$field = $this->getSortField();
$list = $grid->getList();
$list = $grid->getList()->sort($field);
$manip = $grid->getManipulatedList();
$existing = $manip->map('ID', $field)->toArray();