#12052 Fix secondary groups

This commit is contained in:
miguel angel rasteu 2023-09-19 10:47:49 +02:00
parent 1bb1bb11b2
commit d94670c34d
1 changed files with 5 additions and 0 deletions

View File

@ -2116,6 +2116,11 @@ function get_group_alerts(
$group_query = '';
if (!empty($idGroup)) {
$group_query = ' AND id_grupo = '.$idGroup;
$has_secondary = enterprise_hook('agents_is_using_secondary_groups');
if ((bool) $has_secondary === true) {
$group_query .= ' OR tasg.id_group = '.$idGroup;
}
}
if (is_array($filter)) {