From 9852fd104ba2310c50685c26a4f3789b74449167 Mon Sep 17 00:00:00 2001 From: Hayden Smith Date: Tue, 12 Aug 2008 21:48:07 +0000 Subject: [PATCH] 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 --- forms/TableListField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forms/TableListField.php b/forms/TableListField.php index 667cf64ca..ef5f40dac 100755 --- a/forms/TableListField.php +++ b/forms/TableListField.php @@ -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;