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:
parent
3ac68d2eda
commit
98ef759676
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user