Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUG Use the manipulated datalist for counting total items.

This allows other Manipulators to change the total size of the List before
pagination is applied.
  • Loading branch information...
commit d2b4e0df01f82fdbe613890c8ae909af404640a5 1 parent 4ead89a
Simon Welsh simonwelsh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  forms/gridfield/GridFieldPaginator.php
2  forms/gridfield/GridFieldPaginator.php
View
@@ -108,7 +108,7 @@ public function handleAction(GridField $gridField, $actionName, $arguments, $dat
public function getManipulatedData(GridField $gridField, SS_List $dataList) {
if(!$this->checkDataType($dataList)) return $dataList;
- $this->totalItems = $gridField->getList()->count();
+ $this->totalItems = $dataList->count();
$state = $gridField->State->GridFieldPaginator;
if(!is_int($state->currentPage)) {
Please sign in to comment.
Something went wrong with that request. Please try again.