mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Fixed error caused by the limit not clearing when an attempt is made to get the max sort index
This commit is contained in:
parent
f9664b5b28
commit
bf52ce15d2
@ -115,7 +115,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
|
||||
*/
|
||||
protected function fixSortColumn($gridField, SS_List $dataList) {
|
||||
$list=clone $dataList;
|
||||
$list->limit(0);
|
||||
$list->dataQuery()->limit(array());
|
||||
$max = $list->Max($this->sortColumn);
|
||||
if($list->filter($this->sortColumn, 0)->Count()>0) {
|
||||
//Start transaction if supported
|
||||
|
Loading…
Reference in New Issue
Block a user