Closed GoogleCodeExporter closed 9 years ago
The problem was the verified_input_values function in Test.php, which only
returns the first parameter.
This code solves the problem:
public function verified_input_values($values) {
$result = array();
$params = $this->get_parameter_TestVariables();
#create an associative array with parameter names as key
$phpvals = array();
foreach ($values as $v) {
$vd = json_decode($v);
$phpvals[$vd->name] = $v;
}
# create array of allowed parameters
$allowed = array();
foreach ($params as $param) {
array_push($allowed, $param->name);
}
# filter by allowed values and remove key names
$result = array_values(array_intersect_key($phpvals, array_flip($allowed)));
return $result;
}
Original comment by Sebastia...@gmail.com
on 8 Sep 2013 at 12:59
Fixed in beta7.
Original comment by LisPrzem...@gmail.com
on 9 Sep 2013 at 12:53
Original issue reported on code.google.com by
Sebastia...@gmail.com
on 6 Sep 2013 at 6:46