mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX pagination was being applied (with a limit of NULL) to print and export actions. This was due to $_REQUEST['methodname'] not existing. (from r97114)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98152 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5039273e75
commit
59cf48db87
@ -444,7 +444,8 @@ JS
|
||||
$dataQuery = $this->getQuery();
|
||||
|
||||
// we don't limit when doing certain actions T
|
||||
if(!isset($_REQUEST['methodName']) || !in_array($_REQUEST['methodName'],array('printall','export'))) {
|
||||
$methodName = array_pop(explode('/', $_REQUEST['url']));
|
||||
if(!$methodName || !in_array($methodName,array('printall','export'))) {
|
||||
$dataQuery->limit(array(
|
||||
'limit' => $SQL_limit,
|
||||
'start' => (isset($SQL_start)) ? $SQL_start : null
|
||||
|
Loading…
x
Reference in New Issue
Block a user