From d4e01c93228a5f7249902c382407b377bbf24e46 Mon Sep 17 00:00:00 2001 From: joelmoss Date: Sun, 11 May 2008 18:27:39 +0000 Subject: [PATCH] Removing the need for REQUEST_URI for the show passes link git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6804 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/lib/test_manager.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cake/tests/lib/test_manager.php b/cake/tests/lib/test_manager.php index 8e5b98f26..6cafe2b2e 100644 --- a/cake/tests/lib/test_manager.php +++ b/cake/tests/lib/test_manager.php @@ -433,6 +433,12 @@ if (function_exists('caketestsgetreporter')) { } else { $show = '?show=groups'; } + $query = '?group='.$_GET['group']; + if (isset($_GET['app'])) { + $query .= '&app=true'; + } elseif (isset($_GET['plugin'])) { + $query .= '&plugin=' . $_GET['plugin']; + } } if (isset($_GET['case'])) { if (isset($_GET['app'])) { @@ -442,8 +448,14 @@ if (function_exists('caketestsgetreporter')) { } else { $show = '?show=cases'; } + $query = '?case='.$_GET['case']; + if (isset($_GET['app'])) { + $query .= '&app=true'; + } elseif (isset($_GET['plugin'])) { + $query .= '&plugin=' . $_GET['plugin']; + } } - echo "

Run more tests | Show Passes

\n"; + echo "

Run more tests | Show Passes

\n"; break; } }