mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Skip pagination on UnsavedRelationList in GFPaginator
This commit is contained in:
parent
d487a42456
commit
7a6ce01567
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user