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:
Hayden Smith 2008-08-12 21:48:07 +00:00
parent 25808a11da
commit 9852fd104b

View File

@ -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;