MINOR: Fixed TableListField tests that don't set $_REQUEST['url'] (from r97127)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98153 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-02-04 04:30:33 +00:00
parent 59cf48db87
commit e764dec48d
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ JS
$dataQuery = $this->getQuery();
// we don't limit when doing certain actions T
$methodName = array_pop(explode('/', $_REQUEST['url']));
$methodName = isset($_REQUEST['url']) ? array_pop(explode('/', $_REQUEST['url'])) : null;
if(!$methodName || !in_array($methodName,array('printall','export'))) {
$dataQuery->limit(array(
'limit' => $SQL_limit,