Now the group filter of the groups networkmap works properly

This commit is contained in:
Alejandro Gallardo Escobar 2015-02-19 19:24:38 +01:00
parent 2bf3887bd7
commit 684c99aa0c
2 changed files with 6 additions and 1 deletions

View File

@ -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) {

View File

@ -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 = '';