BUG Skip pagination on UnsavedRelationList in GFPaginator

This commit is contained in:
Ingo Schommer 2012-12-20 20:16:53 +01:00
parent d487a42456
commit 7a6ce01567

View File

@ -130,7 +130,7 @@ class GridFieldPaginator implements GridField_HTMLProvider, GridField_DataManipu
// Update item count prior to filter. GridFieldPageCount will rely on this value // Update item count prior to filter. GridFieldPageCount will rely on this value
$this->totalItems = $dataList->count(); $this->totalItems = $dataList->count();
if(!($dataList instanceof SS_Limitable)) { if(!($dataList instanceof SS_Limitable) || ($dataList instanceof UnsavedRelationList)) {
return $dataList; return $dataList;
} }