PM-2666: I added a validation, some variables do not show in reportables

This commit is contained in:
Paula V. Quispe
2015-05-08 11:10:43 -04:00
parent 9e024e9e96
commit 5d48bd3d6f

View File

@@ -1642,13 +1642,16 @@ class pmTablesProxy extends HttpProxyController
$index = 0;
while ($oDataset->next()) {
$row = $oDataset->getRow();
array_push($fields, array(
"FIELD_UID" => $row["VAR_NAME"] . "-" . $row["VAR_FIELD_TYPE"],
"FIELD_NAME" => $row["VAR_NAME"],
"FIELD_VALIDATE" => "any",
"_index" => $index ++,
"_isset" => true
));
$fieldType = isset($row["VAR_FIELD_TYPE"]) ? $row["VAR_FIELD_TYPE"]: '';
if(! in_array( $fieldType, $excludeFieldsList )){
array_push($fields, array(
"FIELD_UID" => $row["VAR_NAME"] . "-" . $row["VAR_FIELD_TYPE"],
"FIELD_NAME" => $row["VAR_NAME"],
"FIELD_VALIDATE" => "any",
"_index" => $index ++,
"_isset" => true
));
}
}
}