From da3061651bc668fec1f1ff0761e1afe63beaea00 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Fri, 21 Sep 2018 13:01:40 +0200 Subject: [PATCH] Fixed search agentes and modules in others tree views --- pandora_console/include/class/Tree.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index a865ebb54a..b72e3ec216 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -93,12 +93,12 @@ class Tree { if (empty($this->filter['searchModule'])) { return ""; } - return " AND tam.nombre LIKE '%".$this->filter['searchModule']."%' "; + return " AND tam.nombre LIKE '%%".$this->filter['searchModule']."%%' "; } protected function getAgentSearchFilter() { if (empty($this->filter['searchAgent'])) return ""; - return " AND LOWER(ta.alias) LIKE LOWER('%".$this->filter['searchAgent']."%')"; + return " AND LOWER(ta.alias) LIKE LOWER('%%".$this->filter['searchAgent']."%%')"; }