mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR: Fixed TableListField tests that don't set $_REQUEST['url'] (from r97127) (from r98153)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102620 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
19f566675b
commit
eba6c9b492
@ -449,7 +449,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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user