mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
Now the group filter of the groups networkmap works properly
This commit is contained in:
parent
2bf3887bd7
commit
684c99aa0c
@ -689,6 +689,7 @@ function networkmap_generate_dot_groups ($pandora_name, $group = 0,
|
||||
}
|
||||
|
||||
$filter['id_grupo'] = $id_groups;
|
||||
$filter['id_group'] = $id_groups;
|
||||
}
|
||||
else {
|
||||
if ($strict_user) {
|
||||
|
@ -1838,7 +1838,11 @@ function tags_get_all_user_agents ($id_tag = false, $id_user = false, $groups_an
|
||||
}
|
||||
|
||||
if (!empty($filter['id_group'])) {
|
||||
$groups_clause .= " AND tagente.id_grupo IN (".$filter['id_group'].")";
|
||||
if (is_array($filter['id_group']))
|
||||
$groups_str = implode(",", $filter['id_group']);
|
||||
else
|
||||
$groups_str = $filter['id_group'];
|
||||
$groups_clause .= " AND tagente.id_grupo IN ($groups_str)";
|
||||
}
|
||||
|
||||
$status_sql = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user