From 29c1ec4851eea34f01223ad7b02280a37af9b700 Mon Sep 17 00:00:00 2001 From: slerena Date: Thu, 23 Aug 2007 17:46:06 +0000 Subject: [PATCH] 2007-08-23 Sancho Lerena * datos_agente.php: Fix delete button for String data. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@616 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 2 ++ pandora_console/operation/agentes/datos_agente.php | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 2de14c90ee..ba1dc14024 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,5 +1,7 @@ 2007-08-23 Sancho Lerena + * datos_agente.php: Fix delete button for String data. + * pandoradbdata_12_to_13.sql, pandoradb_data.sql: Fixed some problems with network components, and network templates. diff --git a/pandora_console/operation/agentes/datos_agente.php b/pandora_console/operation/agentes/datos_agente.php index 0cbd097590..24acbf6ded 100644 --- a/pandora_console/operation/agentes/datos_agente.php +++ b/pandora_console/operation/agentes/datos_agente.php @@ -50,11 +50,13 @@ function datos_raw($id_agente_modulo, $periodo){ $sql1="SELECT * FROM tagente_datos_string WHERE id_agente_modulo = ". $id_agente_modulo." AND id_agente = $id_agent AND utimestamp > '".$periodo."' ORDER BY timestamp DESC"; + $string_type = 1; } else { $sql1="SELECT * FROM tagente_datos WHERE id_agente_modulo = ". $id_agente_modulo." AND id_agente = $id_agent AND utimestamp > '".$periodo."' ORDER BY timestamp DESC"; + $string_type = 0; } $result=mysql_query($sql1); @@ -81,7 +83,7 @@ function datos_raw($id_agente_modulo, $periodo){ $color = 1; } echo ""; - if (give_acl($id_user, $id_group, "AW") ==1) { + if ((give_acl($id_user, $id_group, "AW") ==1) AND ($string_type == 0)){ echo ""; echo ""; } else {