From f584ac783561edcc0a5325cc83f41144a7921a64 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Mon, 4 Nov 2019 17:45:56 +0100 Subject: [PATCH] Solved issue with query --- pandora_console/include/class/TreeService.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/class/TreeService.class.php b/pandora_console/include/class/TreeService.class.php index 8e70fb4389..721b5e6f92 100644 --- a/pandora_console/include/class/TreeService.class.php +++ b/pandora_console/include/class/TreeService.class.php @@ -141,11 +141,13 @@ class TreeService extends Tree FROM tservice ts LEFT JOIN tservice_element tse ON ts.id=tse.id_service - GROUP BY id + WHERE + 1=1 + %s + GROUP BY id ) as t1 ON tss.id_service_child = t1.id WHERE tss.id_service_child IS NULL - %s ", $groups_acl );