Merge branch '972-added-disabled-agents-to-policy-agents-selects-dev' into 'develop'

Added disabled option to get ggroup agents function

See merge request !782
This commit is contained in:
vgilc 2017-09-11 09:51:39 +02:00
commit c9a431d2c9
1 changed files with 7 additions and 5 deletions

View File

@ -853,12 +853,14 @@ function agents_get_group_agents ($id_group = 0, $search = false,
//No added search. Show both disabled and non-disabled
}
else if (is_array ($search)) {
if (!$search['all_agents']) {
$filter['disabled'] = 0;
if (isset ($search["disabled"])) {
$filter['disabled'] = (int) $search["disabled"];
unset ($search["disabled"]);
}
}
if (isset ($search["string"])) {
$string = io_safe_input ($search["string"]);