From 2633ac7ecb45c0e8e2d365c8ee9178c358736744 Mon Sep 17 00:00:00 2001 From: Ed Date: Sun, 19 Aug 2012 14:43:20 -0300 Subject: [PATCH] Fixed issue 6 --- code/forms/GridFieldSortableRows.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/forms/GridFieldSortableRows.php b/code/forms/GridFieldSortableRows.php index 89ad5e1..2260738 100644 --- a/code/forms/GridFieldSortableRows.php +++ b/code/forms/GridFieldSortableRows.php @@ -211,7 +211,8 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP 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); } }