From 0ed382c42c3b978a5462b02600fe336840fdb53b Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 24 Jun 2019 18:48:44 +0200 Subject: [PATCH] SQLerror tasg reference --- pandora_console/include/functions_tags.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_tags.php b/pandora_console/include/functions_tags.php index 6d0211f89d..c4ecc81277 100644 --- a/pandora_console/include/functions_tags.php +++ b/pandora_console/include/functions_tags.php @@ -935,7 +935,7 @@ function tags_get_acl_tags_event_condition( // Group condition (The module belongs to an agent of the group X) // $group_condition = sprintf('id_grupo IN (%s)', implode(',', array_values(groups_get_id_recursive($group_id, true))));. - $group_condition = '('.$id_grupo_table_pretag.'id_grupo = '.$group_id.' OR id_group = '.$group_id.')'; + $group_condition = '('.$id_grupo_table_pretag.'id_grupo = '.$group_id.' OR tasg.d_group = '.$group_id.')'; // Tags condition (The module has at least one of the restricted tags). $tags_condition = ''; @@ -971,7 +971,7 @@ function tags_get_acl_tags_event_condition( } $in_group = implode(',', $without_tags); - $condition .= sprintf('('.$id_grupo_table_pretag.'id_grupo IN (%s) OR id_group IN (%s))', $in_group, $in_group); + $condition .= sprintf('('.$id_grupo_table_pretag.'id_grupo IN (%s) OR tasg.id_group IN (%s))', $in_group, $in_group); } $condition = !empty($condition) ? "($condition)" : '';