diff --git a/cake/libs/router.php b/cake/libs/router.php index cb4c00a3c..92193b429 100644 --- a/cake/libs/router.php +++ b/cake/libs/router.php @@ -994,7 +994,7 @@ class Router { $pass = $params['pass']; $named = $params['named']; $url = $params['url']; - unset($params['pass'], $params['named'], $params['url'], $url['url']); + unset($params['pass'], $params['named'], $params['paging'], $params['models'], $params['url'], $url['url']); $params = array_merge($params, $pass, $named); if (!empty($url)) { $params['?'] = $url; diff --git a/cake/tests/cases/libs/router.test.php b/cake/tests/cases/libs/router.test.php index 61329565a..552d5d05b 100644 --- a/cake/tests/cases/libs/router.test.php +++ b/cake/tests/cases/libs/router.test.php @@ -1987,7 +1987,9 @@ class RouterTest extends CakeTestCase { 'action' => 'view', 'pass' => array(1), 'named' => array(), - 'url' => array('url' => 'eng/posts/view/1', 'foo' => 'bar', 'baz' => 'quu') + 'url' => array('url' => 'eng/posts/view/1', 'foo' => 'bar', 'baz' => 'quu'), + 'paging' => array(), + 'models' => array() ); $result = Router::reverse($params); $this->assertEqual($result, '/eng/posts/view/1?foo=bar&baz=quu');