From 81886ed81acb492daca355b2be3bf5ef16a39d0f Mon Sep 17 00:00:00 2001 From: Ed Chipman Date: Sat, 2 Aug 2014 13:55:52 -0300 Subject: [PATCH] Replaced use of DataList::where() with DataList::filter() --- code/forms/GridFieldSortableRows.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/forms/GridFieldSortableRows.php b/code/forms/GridFieldSortableRows.php index 9f4aabc..4e75245 100644 --- a/code/forms/GridFieldSortableRows.php +++ b/code/forms/GridFieldSortableRows.php @@ -153,7 +153,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP $max = $list->Max($this->sortColumn); - $list=$list->where('"'.$this->sortColumn.'"=0'); + $list=$list->filter($this->sortColumn, 0); if($list->Count()>0) { $owner = $gridField->Form->getRecord(); $sortColumn = $this->sortColumn;