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; $index = 0;
while ($oDataset->next()) { while ($oDataset->next()) {
$row = $oDataset->getRow(); $row = $oDataset->getRow();
array_push($fields, array( $fieldType = isset($row["VAR_FIELD_TYPE"]) ? $row["VAR_FIELD_TYPE"]: '';
"FIELD_UID" => $row["VAR_NAME"] . "-" . $row["VAR_FIELD_TYPE"], if(! in_array( $fieldType, $excludeFieldsList )){
"FIELD_NAME" => $row["VAR_NAME"], array_push($fields, array(
"FIELD_VALIDATE" => "any", "FIELD_UID" => $row["VAR_NAME"] . "-" . $row["VAR_FIELD_TYPE"],
"_index" => $index ++, "FIELD_NAME" => $row["VAR_NAME"],
"_isset" => true "FIELD_VALIDATE" => "any",
)); "_index" => $index ++,
"_isset" => true
));
}
} }
} }