From 6bfdfa5a3b4954e4ad544deaef1f39accd7eb79b Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 30 Mar 2023 14:09:02 +0200 Subject: [PATCH] 10839 Fixed search --- pandora_console/godmode/agentes/modificar_agente.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/agentes/modificar_agente.php b/pandora_console/godmode/agentes/modificar_agente.php index 27f81b1f43..4435457382 100644 --- a/pandora_console/godmode/agentes/modificar_agente.php +++ b/pandora_console/godmode/agentes/modificar_agente.php @@ -563,7 +563,14 @@ if ($search != '') { if ($id != '') { $aux = $id[0]['id_agent']; $search_sql = sprintf( - ' AND ( `nombre` LIKE "%%%s%%" OR tagente.id_agente = %d', + ' AND ( nombre LIKE "%%%s%%" + OR alias LIKE "%%%s%%" + OR comentarios LIKE "%%%s%%" + OR EXISTS (SELECT * FROM tagent_custom_data WHERE id_agent = id_agente AND description LIKE "%%%s%%") + OR tagente.id_agente = %d', + $search, + $search, + $search, $search, $aux );