Working in the new feature.
This commit is contained in:
parent
0cadefa2f0
commit
34caeb13c2
|
@ -168,22 +168,15 @@ function reporting_general($report, $content, $type = 'dinamic') {
|
||||||
$report,
|
$report,
|
||||||
$content);
|
$content);
|
||||||
|
|
||||||
|
$generals = db_get_all_rows_filter(
|
||||||
|
'treport_content_item',
|
||||||
|
array('id_report_content' => $content['id_rc']));
|
||||||
|
if (empty($generals)) {
|
||||||
|
$generals = array();
|
||||||
|
}
|
||||||
|
|
||||||
switch ($content['group_by_agent']) {
|
switch ($content['group_by_agent']) {
|
||||||
case REPORT_GENERAL_NOT_GROUP_BY_AGENT:
|
case REPORT_GENERAL_NOT_GROUP_BY_AGENT:
|
||||||
$sql = sprintf("
|
|
||||||
SELECT id_agent_module,
|
|
||||||
server_name, operation
|
|
||||||
FROM treport_content_item
|
|
||||||
WHERE id_report_content = %d",
|
|
||||||
$content['id_rc']);
|
|
||||||
$generals = db_process_sql ($sql);
|
|
||||||
$generals = db_get_all_rows_filter(
|
|
||||||
'treport_content_item',
|
|
||||||
array('id_report_content' => $content['id_rc']));
|
|
||||||
if (empty($generals)) {
|
|
||||||
$generals = array();
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($generals as $key => $row) {
|
foreach ($generals as $key => $row) {
|
||||||
//Metaconsole connection
|
//Metaconsole connection
|
||||||
$server_name = $row ['server_name'];
|
$server_name = $row ['server_name'];
|
||||||
|
@ -381,10 +374,6 @@ function reporting_general($report, $content, $type = 'dinamic') {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($content['show_resume'] && count($return["data"]) > 0) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
return reporting_check_structure_content($return);
|
return reporting_check_structure_content($return);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue