Parameter item_type should be read from $_REQUEST as it can be in both $_POST and $_GET

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne 2018-07-16 10:31:26 +10:00 committed by Maurício Meneghini Fauth
parent 3ac68d2eda
commit 98ef759676

View File

@ -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();