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:
commit
c9a431d2c9
|
@ -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"]);
|
||||
|
|
Loading…
Reference in New Issue