mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
b2064a726f
commit
41ebffce4f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user