Skip to content
Browse files

BUGFIX: fixing grid field sorting to be compatible with changes intro…

…duced to allow Solr search to work
  • Loading branch information...
1 parent 073515c commit 62eeaa75988de13b85c25b45e70d04b58fedea03 @candidasa candidasa committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 code/forms/GridFieldSortableRows.php
View
4 code/forms/GridFieldSortableRows.php
@@ -131,7 +131,7 @@ public function getManipulatedData(GridField $gridField, SS_List $dataList) {
}
- return $dataList->sort($this->sortColumn);;
+ return $dataList->sort($this->sortColumn);
}
/**
@@ -231,7 +231,7 @@ protected function saveGridRowSort(GridField $gridField, $data) {
$className = $gridField->getModelClass();
$owner = $gridField->Form->getRecord();
$items = clone $gridField->getList();
- $many_many = ($items instanceof ManyManyList);
+ $many_many = ($items instanceof ManyManyList || $items instanceof SearchReindexRelationList);
$sortColumn = $this->sortColumn;
$pageOffset = 0;

0 comments on commit 62eeaa7

Please sign in to comment.
Something went wrong with that request. Please try again.