mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Fixed issue where the sort order could become confused because the filter() was not applied when calling fixSortColumn()
This commit is contained in:
parent
2dc1fb8f16
commit
b1c3e09ca6
@ -117,7 +117,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
|
||||
$list=clone $dataList;
|
||||
$list->dataQuery()->limit(array());
|
||||
$max = $list->Max($this->sortColumn);
|
||||
if($list->filter($this->sortColumn, 0)->Count()>0) {
|
||||
if($list->where('"'.$this->sortColumn.'"=0')->Count()>0) {
|
||||
//Start transaction if supported
|
||||
if(DB::getConn()->supportsTransactions()) {
|
||||
DB::getConn()->transactionStart();
|
||||
|
Loading…
Reference in New Issue
Block a user