From 19f566675b4b1edcb3b501ffb3b921b0456a7b1c Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 13 Apr 2010 02:26:27 +0000 Subject: [PATCH] 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) (from r98152) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102619 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/TableListField.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forms/TableListField.php b/forms/TableListField.php index d96c1adb7..1d8abc97d 100755 --- a/forms/TableListField.php +++ b/forms/TableListField.php @@ -449,7 +449,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