From 35f2a5a463df9014e1c2e9b1a4c046fbbddf9796 Mon Sep 17 00:00:00 2001 From: UndefinedOffset Date: Fri, 10 Aug 2012 12:52:39 -0300 Subject: [PATCH] Consistent Formatting --- code/forms/GridFieldSortableRows.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/forms/GridFieldSortableRows.php b/code/forms/GridFieldSortableRows.php index ce45b99..89ad5e1 100644 --- a/code/forms/GridFieldSortableRows.php +++ b/code/forms/GridFieldSortableRows.php @@ -91,8 +91,8 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP public function getManipulatedData(GridField $gridField, SS_List $dataList) { //Detect and correct items with a sort column value of 0 (push to bottom) $this->fixSortColumn($gridField, $dataList); - - + + $headerState = $gridField->State->GridFieldSortableHeader; $state = $gridField->State->GridFieldSortableRows; if ((!is_bool($state->sortableToggle) || $state->sortableToggle==false) && $headerState && !empty($headerState->SortColumn)) { @@ -115,7 +115,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP */ protected function fixSortColumn($gridField, SS_List $dataList) { $list=clone $dataList; - $list->dataQuery()->limit(array()); + $list->dataQuery()->limit(array()); $max = $list->Max($this->sortColumn); if($list->where('"'.$this->sortColumn.'"=0')->Count()>0) { //Start transaction if supported