From 98ef759676cfc60db56aff657d5f66f818780872 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Mon, 16 Jul 2018 10:31:26 +1000 Subject: [PATCH] Parameter item_type should be read from $_REQUEST as it can be in both $_POST and $_GET Signed-off-by: Madhura Jayaratne --- test/classes/Rte/RoutinesTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/classes/Rte/RoutinesTest.php b/test/classes/Rte/RoutinesTest.php index 4e304746d1..27484c19ef 100644 --- a/test/classes/Rte/RoutinesTest.php +++ b/test/classes/Rte/RoutinesTest.php @@ -64,10 +64,11 @@ class RoutinesTest extends TestCase { global $_POST; - unset($_POST); + unset($_POST); unset($_REQUEST); foreach ($in as $key => $value) { if ($value !== '') { $_POST[$key] = $value; + $_REQUEST[$key] = $value; } } Routines::setGlobals();