Permalink
Browse files

Fixed issue with 3.1 were the sort order of all items in the list wou…

…ld be modified if one item is detected to have an sort order of 0
  • Loading branch information...
1 parent 3e4d5b5 commit 1dba2a911a9e04527fefda057c5807cff86ef78e @UndefinedOffset committed Feb 6, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 code/forms/GridFieldSortableRows.php
@@ -131,7 +131,8 @@ protected function fixSortColumn($gridField, SS_List $dataList) {
$max = $list->Max($this->sortColumn);
- if($list->where('"'.$this->sortColumn.'"=0')->Count()>0) {
+ $list=$list->where('"'.$this->sortColumn.'"=0');
+ if($list->Count()>0) {
$owner = $gridField->Form->getRecord();
$sortColumn = $this->sortColumn;
$i = 1;

0 comments on commit 1dba2a9

Please sign in to comment.