mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged [47080]: Fix for pagination when using customSourceItems in TableListField.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60514 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
25808a11da
commit
9852fd104b
@ -368,10 +368,10 @@ JS
|
||||
$SQL_start = 0;
|
||||
}
|
||||
if(isset($this->customSourceItems)) {
|
||||
if($this->customSourceItems) {
|
||||
if($this->showPagination && $this->pageSize) {
|
||||
$items = $this->customSourceItems->getRange($SQL_start, $SQL_limit);
|
||||
} else {
|
||||
$items = false;
|
||||
$items = $this->customSourceItems;
|
||||
}
|
||||
} elseif(isset($this->cachedSourceItems)) {
|
||||
$items = $this->cachedSourceItems;
|
||||
|
Loading…
Reference in New Issue
Block a user