Permalink
Browse files

Fixed issue 6

  • Loading branch information...
1 parent 35f2a5a commit 2633ac7ecb45c0e8e2d365c8ee9178c358736744 @UndefinedOffset committed Aug 19, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 code/forms/GridFieldSortableRows.php
@@ -211,7 +211,8 @@ protected function saveGridRowSort(GridField $gridField, $data) {
if ($paginator = $gridField->getConfig()->getComponentsByType('GridFieldPaginator')->First()) {
$pageState = $gridField->State->GridFieldPaginator;
- if($pageState->currentPage && $pageState->currentPage>1) {
+
+ if($pageState->currentPage && is_int($pageState->currentPage) && $pageState->currentPage>1) {
$pageOffset = $paginator->getItemsPerPage() * ($pageState->currentPage - 1);
}
}

0 comments on commit 2633ac7

Please sign in to comment.