Permalink
Browse files

Fixed issue where the sort order could become confused because the fi…

…lter() was not applied when calling fixSortColumn()
  • Loading branch information...
1 parent 2dc1fb8 commit b1c3e09ca6d0182753d9d4c43843aa91ad2e2d20 @UndefinedOffset committed Jul 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/forms/GridFieldSortableRows.php
@@ -117,7 +117,7 @@ protected function fixSortColumn($gridField, SS_List $dataList) {
$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();

0 comments on commit b1c3e09

Please sign in to comment.