From 2969d727cbe968fdd57f4378e986520005ade03b Mon Sep 17 00:00:00 2001 From: vgilc Date: Mon, 9 May 2011 15:38:22 +0000 Subject: [PATCH] 2011-05-09 Vanessa Gil * operation/agentes/estado_agente.php: Fixed a mistake of my last commit. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4323 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 8 ++++++++ pandora_console/operation/agentes/estado_agente.php | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 92053f2960..9873db6d76 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ + +2011-05-09 Vanessa Gil + + * operation/agentes/estado_agente.php: Fixed a mistake of my last + commit. + + 2011-05-09 Javier Lanz * include/graphs/fgraph.php: Added 'period' parameter to slicesbar_graph @@ -36,6 +43,7 @@ * pandoradb.postgreSQL.sql: fixed the type of cell "id_agente_modulo" in the table "tagente_datos_string". +>>>>>>> .r4322 2011-05-06 Dario Rodriguez * include/graphs/functions_gd.php: Added new parameter to function diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index f966e689cf..7a345cef3b 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -237,6 +237,11 @@ switch ($sortField) { break; } +$search_sql = ''; +if ($search != ""){ + $search_sql = " AND ( nombre COLLATE utf8_general_ci LIKE '%$search%' OR direccion LIKE '%$search%') "; +} + // Show only selected groups if ($group_id > 0) { $groups = $group_id;