mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 15:05:38 +00: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=clone $dataList;
|
||||||
$list->dataQuery()->limit(array());
|
$list->dataQuery()->limit(array());
|
||||||
$max = $list->Max($this->sortColumn);
|
$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
|
//Start transaction if supported
|
||||||
if(DB::getConn()->supportsTransactions()) {
|
if(DB::getConn()->supportsTransactions()) {
|
||||||
DB::getConn()->transactionStart();
|
DB::getConn()->transactionStart();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user