From e0b3536d1b0556ffd333141a857f68243e47bc47 Mon Sep 17 00:00:00 2001 From: Calvo Date: Thu, 10 Jun 2021 18:00:53 +0200 Subject: [PATCH] Fix treeview modules sql inner condition --- pandora_console/include/class/TreeModule.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora_console/include/class/TreeModule.class.php b/pandora_console/include/class/TreeModule.class.php index 99ed5dfc04..ee9ef10138 100644 --- a/pandora_console/include/class/TreeModule.class.php +++ b/pandora_console/include/class/TreeModule.class.php @@ -28,6 +28,8 @@ class TreeModule extends Tree $this->L1fieldNameSql = 'tam.nombre'; $this->L1inner = ''; $this->L1orderByFinal = 'name'; + $this->L1innerInside = 'INNER JOIN tagente_modulo tam + ON ta.id_agente = tam.id_agente'; $this->L2condition = "AND tam.nombre = '".$this->symbol2name($this->rootID)."'"; }