Compare commits

...

2 Commits

Author SHA1 Message Date
Johannes Hammersen
e1f0fd13f9
Merge fbf7b864d574a3688f7267765223ab80278c7e82 into 54b5fc148369cfbff815d9e5d84c3df952951328 2024-09-25 08:08:43 +00:00
johannes.hammersen
fbf7b864d5 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.
2024-09-25 10:07:10 +02:00

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();