#12052 Fix secondary groups
This commit is contained in:
parent
1bb1bb11b2
commit
d94670c34d
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue