mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
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:
parent
54b5fc1483
commit
fbf7b864d5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user