Merged [47073]: Fix for pagination in TableListField::sourceItems.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60508 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Hayden Smith 2008-08-12 21:14:06 +00:00
parent b2064a726f
commit 41ebffce4f

View File

@ -361,7 +361,7 @@ JS
}
function sourceItems() {
$SQL_limit = ($this->pageSize) ? "{$this->pageSize}" : "0";
$SQL_limit = ($this->showPagination && $this->pageSize) ? "{$this->pageSize}" : "0";
if(isset($_REQUEST['ctf'][$this->Name()]['start']) && is_numeric($_REQUEST['ctf'][$this->Name()]['start'])) {
$SQL_start = (isset($_REQUEST['ctf'][$this->Name()]['start'])) ? intval($_REQUEST['ctf'][$this->Name()]['start']) : "0";
} else {