From 83e5c14b1d24344561dbaf2dccbd427c910a3598 Mon Sep 17 00:00:00 2001 From: "marcos.alconada" Date: Mon, 9 Sep 2019 12:54:16 +0200 Subject: [PATCH] add condition in query --- pandora_console/include/class/Tree.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index f5af14a6db..5c6434c8bd 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -1075,6 +1075,8 @@ class Tree ON ta.id_agente = tasg.id_agent LEFT JOIN talert_template_modules tatm ON tatm.id_agent_module = tam.id_agente_modulo + AND tatm.id_alert_template = 1 + OR tatm.id_alert_template = NULL $inner WHERE tam.disabled = 0 AND ta.disabled = 0 $condition