Permalink
Browse files

BUG Skip pagination on UnsavedRelationList in GFPaginator

  • Loading branch information...
1 parent d487a42 commit 7a6ce01567fdb0168fc2776c646a544f0074320f @chillu chillu committed Dec 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 forms/gridfield/GridFieldPaginator.php
@@ -130,7 +130,7 @@ public function getManipulatedData(GridField $gridField, SS_List $dataList) {
// Update item count prior to filter. GridFieldPageCount will rely on this value
$this->totalItems = $dataList->count();
- if(!($dataList instanceof SS_Limitable)) {
+ if(!($dataList instanceof SS_Limitable) || ($dataList instanceof UnsavedRelationList)) {
return $dataList;
}

0 comments on commit 7a6ce01

Please sign in to comment.