mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch '2396-fallo-acl-en-vista-de-cluster' into 'develop'
Fixed bug in cluster view See merge request artica/pandorafms!1571
This commit is contained in:
commit
e2f9e25dd9
@ -536,11 +536,18 @@ if ($agents !== false) {
|
|||||||
if($agent["alias"] == ''){
|
if($agent["alias"] == ''){
|
||||||
$agent["alias"] = $agent["nombre"];
|
$agent["alias"] = $agent["nombre"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($agent["id_os"] == 100){
|
||||||
|
$cluster = db_get_row_sql('select id from tcluster where id_agent = '.$agent['id_agente']);
|
||||||
|
echo '<a href="index.php?sec=reporting&sec2=enterprise/godmode/reporting/cluster_builder&id_cluster='.$cluster['id'].'&step=1&update=1">'.$agent['nombre'].'</a>';
|
||||||
|
|
||||||
|
}else{
|
||||||
echo "<a alt =".$agent["nombre"]." href='index.php?sec=gagente&
|
echo "<a alt =".$agent["nombre"]." href='index.php?sec=gagente&
|
||||||
sec2=godmode/agentes/configurar_agente&tab=$main_tab&
|
sec2=godmode/agentes/configurar_agente&tab=$main_tab&
|
||||||
id_agente=" . $agent["id_agente"] . "'>" .
|
id_agente=" . $agent["id_agente"] . "'>" .
|
||||||
'<span style="font-size: 7pt" title="' . $agent["nombre"] . '">'.$agent["alias"].'</span>' .
|
'<span style="font-size: 7pt" title="' . $agent["nombre"] . '">'.$agent["alias"].'</span>' .
|
||||||
"</a>";
|
"</a>";
|
||||||
|
}
|
||||||
echo "</strong>";
|
echo "</strong>";
|
||||||
|
|
||||||
$in_planned_downtime = db_get_sql('SELECT executed FROM tplanned_downtime
|
$in_planned_downtime = db_get_sql('SELECT executed FROM tplanned_downtime
|
||||||
|
Loading…
x
Reference in New Issue
Block a user