Fixed the lost 'server_name' in the monitor view in a node console.
(cherry picked from commit f1701f32c9
)
This commit is contained in:
parent
ea8854b8d7
commit
d49a895833
|
@ -990,6 +990,10 @@ $id_type_web_content_string = db_get_value('id_tipo', 'ttipo_modulo',
|
||||||
'nombre', 'web_content_string');
|
'nombre', 'web_content_string');
|
||||||
|
|
||||||
foreach ($result as $row) {
|
foreach ($result as $row) {
|
||||||
|
//Avoid unset, null and false value
|
||||||
|
if (empty($row['server_name']))
|
||||||
|
$row['server_name'] = "";
|
||||||
|
|
||||||
$is_web_content_string = (bool)db_get_value_filter('id_agente_modulo',
|
$is_web_content_string = (bool)db_get_value_filter('id_agente_modulo',
|
||||||
'tagente_modulo',
|
'tagente_modulo',
|
||||||
array('id_agente_modulo' => $row['id_agente_modulo'],
|
array('id_agente_modulo' => $row['id_agente_modulo'],
|
||||||
|
@ -1188,7 +1192,13 @@ foreach ($result as $row) {
|
||||||
|
|
||||||
$data[7] = '<a href="javascript:'.$link.'">' . html_print_image("images/chart_curve.png", true, array("border" => '0', "alt" => "")) . '</a>';
|
$data[7] = '<a href="javascript:'.$link.'">' . html_print_image("images/chart_curve.png", true, array("border" => '0', "alt" => "")) . '</a>';
|
||||||
|
|
||||||
$data[7] .= "<a href='javascript: show_module_detail_dialog(" . $row["id_agente_modulo"] . ", ". $row['id_agent'].", \"" . $row['server_name'] . "\", 0, 86400)'>". html_print_image ("images/binary.png", true, array ("border" => "0", "alt" => "")) . "</a>";
|
$data[7] .= "<a href='javascript: " .
|
||||||
|
"show_module_detail_dialog(" .
|
||||||
|
$row["id_agente_modulo"] . ", ".
|
||||||
|
$row['id_agent'] . ", \"" .
|
||||||
|
$row['server_name'] . "\", 0, 86400)'>" .
|
||||||
|
html_print_image ("images/binary.png", true,
|
||||||
|
array ("border" => "0", "alt" => "")) . "</a>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue