Fixed error caused by the limit not clearing when an attempt is made to get the max sort index

This commit is contained in:
Ed 2012-06-18 20:32:51 -03:00
parent f9664b5b28
commit bf52ce15d2
1 changed files with 1 additions and 1 deletions

View File

@ -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