Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 1dba2a911a9e04527fefda057c5807cff86ef78e 1 parent 3e4d5b5
@UndefinedOffset authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  code/forms/GridFieldSortableRows.php
View
3  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;
Please sign in to comment.
Something went wrong with that request. Please try again.