mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Fixed the count of ok agents in the group view into the treeview
This commit is contained in:
parent
70616b04cb
commit
b711dcdd34
@ -1189,6 +1189,8 @@ function groups_agent_total($group_array) {
|
||||
WHERE tagente.disabled = 0
|
||||
AND id_grupo IN $group_clause");
|
||||
|
||||
|
||||
|
||||
return $count > 0 ? $count : 0;
|
||||
}
|
||||
|
||||
@ -1210,9 +1212,10 @@ function groups_agent_ok ($group_array) {
|
||||
FROM tagente
|
||||
WHERE tagente.disabled = 0
|
||||
AND normal_count = total_count
|
||||
AND (notinit_count != 0)
|
||||
AND id_grupo IN $group_clause");
|
||||
|
||||
|
||||
|
||||
return $count > 0 ? $count : 0;
|
||||
}
|
||||
|
||||
@ -1627,6 +1630,7 @@ function groups_get_tree(&$groups, $parent = false) {
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
||||
function groups_get_all_hierarchy_group ($id_group, $hierarchy = array()) {
|
||||
global $config;
|
||||
|
||||
|
@ -619,6 +619,8 @@ function treeview_getData ($type) {
|
||||
return array ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
$fgroups = array();
|
||||
|
||||
foreach ($full_groups as $fg) {
|
||||
@ -830,7 +832,7 @@ function treeview_getData ($type) {
|
||||
$list = array();
|
||||
}
|
||||
|
||||
array_push($list, array('id_mg' => 0, 'name' => 'Not assigned'));
|
||||
array_push($list, array('id_mg' => 0, 'name' => 'Not assigned'));
|
||||
|
||||
break;
|
||||
case 'policies':
|
||||
|
Loading…
x
Reference in New Issue
Block a user